This commit is contained in:
Mary Hipp 2024-07-23 20:07:53 -04:00 committed by psychedelicious
parent bd73b6b2af
commit d1bbd0cf80
2 changed files with 0 additions and 34 deletions

View File

@ -154,7 +154,6 @@ const GalleryBoard = ({ board, isSelected, setBoardToDelete }: GalleryBoardProps
noOfLines={1} noOfLines={1}
w="fit-content" w="fit-content"
wordBreak="break-all" wordBreak="break-all"
// color={isSelected ? 'base.100' : 'base.200'}
fontWeight={isSelected ? 'bold' : 'normal'} fontWeight={isSelected ? 'bold' : 'normal'}
/> />
<EditableInput sx={editableInputStyles} /> <EditableInput sx={editableInputStyles} />

View File

@ -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 (
<Flex
onClick={props.onClick}
as="button"
h="full"
w="full"
layerStyle="second"
borderRadius="base"
alignItems="center"
justifyContent="center"
p={1}
>
<Text fontWeight="semibold" fontSize="md" noOfLines={1} wordBreak="break-all" color="base.200">
{boardName}
</Text>
</Flex>
);
};
export default memo(GalleryBoardName);