mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix circular dep
This commit is contained in:
parent
bdff5c4e87
commit
9f30f1bfec
@ -12,8 +12,7 @@ import { PiImageBold, PiWarningCircleBold } from 'react-icons/pi';
|
|||||||
import { useListImagesQuery } from 'services/api/endpoints/images';
|
import { useListImagesQuery } from 'services/api/endpoints/images';
|
||||||
|
|
||||||
import GalleryImage, { GALLERY_IMAGE_CLASS_NAME } from './GalleryImage';
|
import GalleryImage, { GALLERY_IMAGE_CLASS_NAME } from './GalleryImage';
|
||||||
|
import { GALLERY_GRID_CLASS_NAME } from './constants';
|
||||||
export const GALLERY_GRID_CLASS_NAME = 'gallery-grid';
|
|
||||||
|
|
||||||
const GalleryImageGrid = () => {
|
const GalleryImageGrid = () => {
|
||||||
useGalleryHotkeys();
|
useGalleryHotkeys();
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
export const GALLERY_GRID_CLASS_NAME = 'gallery-grid';
|
@ -1,7 +1,6 @@
|
|||||||
import { useAltModifier } from '@invoke-ai/ui-library';
|
import { useAltModifier } from '@invoke-ai/ui-library';
|
||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import { GALLERY_IMAGE_CLASS_NAME } from 'features/gallery/components/ImageGrid/GalleryImage';
|
import { GALLERY_IMAGE_CLASS_NAME } from 'features/gallery/components/ImageGrid/GalleryImage';
|
||||||
import { GALLERY_GRID_CLASS_NAME } from 'features/gallery/components/ImageGrid/GalleryImageGrid';
|
|
||||||
import { getGalleryImageDataTestId } from 'features/gallery/components/ImageGrid/getGalleryImageDataTestId';
|
import { getGalleryImageDataTestId } from 'features/gallery/components/ImageGrid/getGalleryImageDataTestId';
|
||||||
import { virtuosoGridRefs } from 'features/gallery/components/ImageGrid/types';
|
import { virtuosoGridRefs } from 'features/gallery/components/ImageGrid/types';
|
||||||
import { useGalleryImages } from 'features/gallery/hooks/useGalleryImages';
|
import { useGalleryImages } from 'features/gallery/hooks/useGalleryImages';
|
||||||
@ -11,6 +10,7 @@ import { getScrollToIndexAlign } from 'features/gallery/util/getScrollToIndexAli
|
|||||||
import { clamp } from 'lodash-es';
|
import { clamp } from 'lodash-es';
|
||||||
import { useCallback, useMemo } from 'react';
|
import { useCallback, useMemo } from 'react';
|
||||||
import type { ImageDTO } from 'services/api/types';
|
import type { ImageDTO } from 'services/api/types';
|
||||||
|
import { GALLERY_GRID_CLASS_NAME } from '../components/ImageGrid/constants';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This hook is used to navigate the gallery using the arrow keys.
|
* This hook is used to navigate the gallery using the arrow keys.
|
||||||
|
Loading…
Reference in New Issue
Block a user