Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshenJ committed Oct 4, 2024
1 parent 0acfa25 commit 4948547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AllPagesPanel/AllPagesPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const AllPagesPanel: React.FC<AllPagesPanelProps> = (props) => {
if (isEditMode) {
editMenuProps.onOpenEditMode?.();
}
}, [isEditMode, onEditModeChanged, editMenuProps.onOpenEditMode]);
}, [isEditMode, onEditModeChanged, editMenuProps]);

const onItemClick = useCallback((item: ListItemData<MenuItem>) => {
//@ts-ignore TODO fix when @gravity-ui/uikit/List will provide event arg on item click
Expand All @@ -69,7 +69,7 @@ export const AllPagesPanel: React.FC<AllPagesPanelProps> = (props) => {
}),
);
},
[onMenuItemsChanged, editMenuProps.onToggleMenuItem],
[onMenuItemsChanged, editMenuProps],
);

const itemRender = useCallback(
Expand Down

0 comments on commit 4948547

Please sign in to comment.