mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
cleanup
This commit is contained in:
parent
bd73b6b2af
commit
d1bbd0cf80
@ -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} />
|
||||||
|
@ -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);
|
|
Loading…
Reference in New Issue
Block a user