mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-22 11:43:34 +03:00
Fix
This commit is contained in:
parent
f311354637
commit
78d7914c57
@ -19,7 +19,7 @@ import { getNavigationSubItemLeftAdornment } from '@/ui/navigation/navigation-dr
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { useLocation } from 'react-router-dom';
|
import { useLocation } from 'react-router-dom';
|
||||||
import { useRecoilState } from 'recoil';
|
import { useRecoilState } from 'recoil';
|
||||||
import { IconFolder, LightIconButton, IconHeartOff } from 'twenty-ui';
|
import { IconFolder, IconHeartOff, LightIconButton } from 'twenty-ui';
|
||||||
|
|
||||||
type CurrentWorkspaceMemberFavoritesProps = {
|
type CurrentWorkspaceMemberFavoritesProps = {
|
||||||
folder: {
|
folder: {
|
||||||
@ -107,15 +107,6 @@ export const CurrentWorkspaceMemberFavorites = ({
|
|||||||
setIsDeleteModalOpen(false);
|
setIsDeleteModalOpen(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
const rightOptions = (
|
|
||||||
<FavoriteFolderNavigationDrawerItemDropdown
|
|
||||||
folderId={folder.folderId}
|
|
||||||
onRename={() => setIsFavoriteFolderRenaming(true)}
|
|
||||||
onDelete={handleFavoriteFolderDelete}
|
|
||||||
closeDropdown={closeFavoriteFolderEditDropdown}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<NavigationDrawerItemsCollapsableContainer
|
<NavigationDrawerItemsCollapsableContainer
|
||||||
@ -138,7 +129,14 @@ export const CurrentWorkspaceMemberFavorites = ({
|
|||||||
label={folder.folderName}
|
label={folder.folderName}
|
||||||
Icon={IconFolder}
|
Icon={IconFolder}
|
||||||
onClick={handleToggle}
|
onClick={handleToggle}
|
||||||
rightOptions={rightOptions}
|
rightOptions={
|
||||||
|
<FavoriteFolderNavigationDrawerItemDropdown
|
||||||
|
folderId={folder.folderId}
|
||||||
|
onRename={() => setIsFavoriteFolderRenaming(true)}
|
||||||
|
onDelete={handleFavoriteFolderDelete}
|
||||||
|
closeDropdown={closeFavoriteFolderEditDropdown}
|
||||||
|
/>
|
||||||
|
}
|
||||||
className="navigation-drawer-item"
|
className="navigation-drawer-item"
|
||||||
active={isFavoriteFolderEditDropdownOpen}
|
active={isFavoriteFolderEditDropdownOpen}
|
||||||
/>
|
/>
|
||||||
@ -183,7 +181,6 @@ export const CurrentWorkspaceMemberFavorites = ({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</NavigationDrawerItemsCollapsableContainer>
|
</NavigationDrawerItemsCollapsableContainer>
|
||||||
|
|
||||||
<ConfirmationModal
|
<ConfirmationModal
|
||||||
isOpen={isDeleteModalOpen}
|
isOpen={isDeleteModalOpen}
|
||||||
setIsOpen={setIsDeleteModalOpen}
|
setIsOpen={setIsDeleteModalOpen}
|
||||||
|
Loading…
Reference in New Issue
Block a user