From d1bbd0cf80bf16211ddb073c531ef696155f81dd Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Tue, 23 Jul 2024 20:07:53 -0400 Subject: [PATCH] cleanup --- .../Boards/BoardsList/GalleryBoard.tsx | 1 - .../gallery/components/GalleryBoardName.tsx | 33 ------------------- 2 files changed, 34 deletions(-) delete mode 100644 invokeai/frontend/web/src/features/gallery/components/GalleryBoardName.tsx diff --git a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/GalleryBoard.tsx b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/GalleryBoard.tsx index 7a4779c815..326459d627 100644 --- a/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/GalleryBoard.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/Boards/BoardsList/GalleryBoard.tsx @@ -154,7 +154,6 @@ const GalleryBoard = ({ board, isSelected, setBoardToDelete }: GalleryBoardProps noOfLines={1} w="fit-content" wordBreak="break-all" - // color={isSelected ? 'base.100' : 'base.200'} fontWeight={isSelected ? 'bold' : 'normal'} /> diff --git a/invokeai/frontend/web/src/features/gallery/components/GalleryBoardName.tsx b/invokeai/frontend/web/src/features/gallery/components/GalleryBoardName.tsx deleted file mode 100644 index 39bea0ab62..0000000000 --- a/invokeai/frontend/web/src/features/gallery/components/GalleryBoardName.tsx +++ /dev/null @@ -1,33 +0,0 @@ -import { Flex, Text } from '@invoke-ai/ui-library'; -import { useAppSelector } from 'app/store/storeHooks'; -import { memo } from 'react'; -import { useBoardName } from 'services/api/hooks/useBoardName'; - -type Props = { - onClick: () => void; -}; - -const GalleryBoardName = (props: Props) => { - const selectedBoardId = useAppSelector((s) => s.gallery.selectedBoardId); - const boardName = useBoardName(selectedBoardId); - - return ( - - - {boardName} - - - ); -}; - -export default memo(GalleryBoardName);