fix circular dep

This commit is contained in:
Mary Hipp 2024-06-24 14:53:40 -04:00 committed by psychedelicious
parent bdff5c4e87
commit 9f30f1bfec
3 changed files with 3 additions and 3 deletions

View File

@ -12,8 +12,7 @@ import { PiImageBold, PiWarningCircleBold } from 'react-icons/pi';
import { useListImagesQuery } from 'services/api/endpoints/images';
import GalleryImage, { GALLERY_IMAGE_CLASS_NAME } from './GalleryImage';
export const GALLERY_GRID_CLASS_NAME = 'gallery-grid';
import { GALLERY_GRID_CLASS_NAME } from './constants';
const GalleryImageGrid = () => {
useGalleryHotkeys();

View File

@ -0,0 +1 @@
export const GALLERY_GRID_CLASS_NAME = 'gallery-grid';

View File

@ -1,7 +1,6 @@
import { useAltModifier } from '@invoke-ai/ui-library';
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
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 { virtuosoGridRefs } from 'features/gallery/components/ImageGrid/types';
import { useGalleryImages } from 'features/gallery/hooks/useGalleryImages';
@ -11,6 +10,7 @@ import { getScrollToIndexAlign } from 'features/gallery/util/getScrollToIndexAli
import { clamp } from 'lodash-es';
import { useCallback, useMemo } from 'react';
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.