mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(ui): rename GalleryBulkSelect -> GallerySelectionCountTag
This commit is contained in:
parent
1ce459198c
commit
d6e85e5f67
@ -2,7 +2,7 @@ import { Box, Flex, Grid } from '@invoke-ai/ui-library';
|
|||||||
import { EMPTY_ARRAY } from 'app/store/constants';
|
import { EMPTY_ARRAY } from 'app/store/constants';
|
||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import { IAINoContentFallback } from 'common/components/IAIImageFallback';
|
import { IAINoContentFallback } from 'common/components/IAIImageFallback';
|
||||||
import { GalleryBulkSelect } from 'features/gallery/components/ImageGrid/GalleryBulkSelect';
|
import { GallerySelectionCountTag } from 'features/gallery/components/ImageGrid/GallerySelectionCountTag';
|
||||||
import { useGalleryHotkeys } from 'features/gallery/hooks/useGalleryHotkeys';
|
import { useGalleryHotkeys } from 'features/gallery/hooks/useGalleryHotkeys';
|
||||||
import { selectListImagesQueryArgs } from 'features/gallery/store/gallerySelectors';
|
import { selectListImagesQueryArgs } from 'features/gallery/store/gallerySelectors';
|
||||||
import { limitChanged } from 'features/gallery/store/gallerySlice';
|
import { limitChanged } from 'features/gallery/store/gallerySlice';
|
||||||
@ -145,7 +145,7 @@ const Content = () => {
|
|||||||
))}
|
))}
|
||||||
</Grid>
|
</Grid>
|
||||||
</Box>
|
</Box>
|
||||||
<GalleryBulkSelect />
|
<GallerySelectionCountTag />
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -6,7 +6,7 @@ import { useCallback } from 'react';
|
|||||||
import { useHotkeys } from 'react-hotkeys-hook';
|
import { useHotkeys } from 'react-hotkeys-hook';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
export const GalleryBulkSelect = () => {
|
export const GallerySelectionCountTag = () => {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
const { selection } = useAppSelector((s) => s.gallery);
|
const { selection } = useAppSelector((s) => s.gallery);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@ -31,8 +31,8 @@ export const GalleryBulkSelect = () => {
|
|||||||
position="absolute"
|
position="absolute"
|
||||||
bg="invokeBlue.800"
|
bg="invokeBlue.800"
|
||||||
color="base.50"
|
color="base.50"
|
||||||
py={1}
|
py={2}
|
||||||
px={3}
|
px={4}
|
||||||
userSelect="none"
|
userSelect="none"
|
||||||
shadow="dark-lg"
|
shadow="dark-lg"
|
||||||
fontWeight="semibold"
|
fontWeight="semibold"
|
Loading…
Reference in New Issue
Block a user