From 537cfa0e500c7f40720cc7b06feaab6c8c7ab96f Mon Sep 17 00:00:00 2001 From: Yauheni Mileika Date: Tue, 1 Oct 2024 00:05:24 +0300 Subject: [PATCH 1/8] feat: add preventUserRemoving prop for menu item and add callbacks for aside header --- .../AllPagesListItem/AllPagesListItem.tsx | 2 +- src/components/AllPagesPanel/AllPagesPanel.tsx | 15 ++++++++++++++- src/components/AsideHeader/types.tsx | 3 +++ src/components/types.ts | 1 + 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/components/AllPagesPanel/AllPagesListItem/AllPagesListItem.tsx b/src/components/AllPagesPanel/AllPagesListItem/AllPagesListItem.tsx index dfa6bcb..74fbcac 100644 --- a/src/components/AllPagesPanel/AllPagesListItem/AllPagesListItem.tsx +++ b/src/components/AllPagesPanel/AllPagesListItem/AllPagesListItem.tsx @@ -39,7 +39,7 @@ export const AllPagesListItem: React.FC = (props) => { ) : null} {item.title} - {editMode && ( + {editMode && !item.preventUserRemoving && (