Skip to content

Commit

Permalink
placed button outside picture div
Browse files Browse the repository at this point in the history
  • Loading branch information
Josefine authored and Josefine committed Oct 21, 2024
1 parent 0248828 commit b09e76f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/pages/GalleryDetails/components/GalleryRenderer.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import { useMemo } from 'react';

import { Gallery } from 'types';
import { Picture } from 'types';

Check warning on line 4 in src/pages/GalleryDetails/components/GalleryRenderer.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

'Picture' is defined but never used

Check warning on line 4 in src/pages/GalleryDetails/components/GalleryRenderer.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

'Picture' is defined but never used

import { useGalleryPictures } from 'hooks/Gallery';

import { Picture } from 'types';

import PictureDialog from 'pages/GalleryDetails/components/PictureDialog';

import { PaginateButton } from 'components/ui/button';
import { Skeleton } from 'components/ui/skeleton';



export const GalleryRendererLoading = () => {
return (
<div className='grid md:grid-cols-2 lg:grid-cols-3 gap-4'>
Expand All @@ -36,12 +33,9 @@ const GalleryRenderer = ({ id }: GalleryRendererProps) => {
{pictures.map((image) => (
<PictureDialog galleryId={id} key={image.id} picture={image} />
))}
{hasNextPage && <PaginateButton className='mt-4' isLoading={isFetching} nextPage={fetchNextPage} />}
</div>

{hasNextPage && <PaginateButton className='mt-4' isLoading={isFetching} nextPage={fetchNextPage} />}
</div>


);
};

Expand Down

0 comments on commit b09e76f

Please sign in to comment.