update BoardRecord

This commit is contained in:
chainchompa
2024-07-08 14:55:04 -04:00
parent 9ca6980c7a
commit 3a85ab15a1
4 changed files with 7 additions and 11 deletions

View File

@ -22,7 +22,7 @@ const overlayScrollbarsStyles: CSSProperties = {
width: '100%',
};
const BoardsListWithPrivate = () => {
const BoardsList = () => {
const selectedBoardId = useAppSelector((s) => s.gallery.selectedBoardId);
const boardSearchText = useAppSelector((s) => s.gallery.boardSearchText);
const allowPrivateBoards = useAppSelector((s) => s.config.allowPrivateBoards);
@ -127,4 +127,4 @@ const BoardsListWithPrivate = () => {
);
};
export default memo(BoardsListWithPrivate);
export default memo(BoardsList);

View File

@ -43,13 +43,7 @@ const ImageGalleryContent = () => {
>
{galleryHeader}
<Box>
<Flex alignItems="center" justifyContent="space-between" gap={2}>
<GalleryBoardName isOpen={isBoardListOpen} onToggle={onToggleBoardList} />
<GallerySettingsPopover />
</Flex>
<Box>
<BoardsList isOpen={isBoardListOpen} />
</Box>
<BoardsList isOpen={isBoardListOpen} />
</Box>
<Flex alignItems="center" justifyContent="space-between" gap={2}>
<Tabs index={galleryView === 'images' ? 0 : 1} variant="unstyled" size="sm" w="full">