|
@@ -30,7 +30,7 @@ type BookmarkFolderItemProps = {
|
|
|
level: number
|
|
level: number
|
|
|
root: string
|
|
root: string
|
|
|
isUserHomePage?: boolean
|
|
isUserHomePage?: boolean
|
|
|
- onClickDeleteBookmarkHandler: (pageToDelete: IPageToDeleteWithMeta) => void
|
|
|
|
|
|
|
+ onClickDeleteMenuItemHandler: (pageToDelete: IPageToDeleteWithMeta) => void
|
|
|
bookmarkFolderTreeMutation: () => void
|
|
bookmarkFolderTreeMutation: () => void
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -39,7 +39,7 @@ export const BookmarkFolderItem: FC<BookmarkFolderItemProps> = (props: BookmarkF
|
|
|
const acceptedTypes: DragItemType[] = [DRAG_ITEM_TYPE.FOLDER, DRAG_ITEM_TYPE.BOOKMARK];
|
|
const acceptedTypes: DragItemType[] = [DRAG_ITEM_TYPE.FOLDER, DRAG_ITEM_TYPE.BOOKMARK];
|
|
|
const {
|
|
const {
|
|
|
isReadOnlyUser, bookmarkFolder, isOpen: _isOpen = false, isOperable, level, root, isUserHomePage,
|
|
isReadOnlyUser, bookmarkFolder, isOpen: _isOpen = false, isOperable, level, root, isUserHomePage,
|
|
|
- onClickDeleteBookmarkHandler, bookmarkFolderTreeMutation,
|
|
|
|
|
|
|
+ onClickDeleteMenuItemHandler, bookmarkFolderTreeMutation,
|
|
|
} = props;
|
|
} = props;
|
|
|
|
|
|
|
|
const {
|
|
const {
|
|
@@ -155,7 +155,7 @@ export const BookmarkFolderItem: FC<BookmarkFolderItemProps> = (props: BookmarkF
|
|
|
level={level + 1}
|
|
level={level + 1}
|
|
|
root={root}
|
|
root={root}
|
|
|
isUserHomePage={isUserHomePage}
|
|
isUserHomePage={isUserHomePage}
|
|
|
- onClickDeleteBookmarkHandler={onClickDeleteBookmarkHandler}
|
|
|
|
|
|
|
+ onClickDeleteMenuItemHandler={onClickDeleteMenuItemHandler}
|
|
|
bookmarkFolderTreeMutation={bookmarkFolderTreeMutation}
|
|
bookmarkFolderTreeMutation={bookmarkFolderTreeMutation}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
@@ -174,7 +174,7 @@ export const BookmarkFolderItem: FC<BookmarkFolderItemProps> = (props: BookmarkF
|
|
|
level={level + 1}
|
|
level={level + 1}
|
|
|
parentFolder={bookmarkFolder}
|
|
parentFolder={bookmarkFolder}
|
|
|
canMoveToRoot={true}
|
|
canMoveToRoot={true}
|
|
|
- onClickDeleteBookmarkHandler={onClickDeleteBookmarkHandler}
|
|
|
|
|
|
|
+ onClickDeleteMenuItemHandler={onClickDeleteMenuItemHandler}
|
|
|
bookmarkFolderTreeMutation={bookmarkFolderTreeMutation}
|
|
bookmarkFolderTreeMutation={bookmarkFolderTreeMutation}
|
|
|
/>
|
|
/>
|
|
|
);
|
|
);
|