1
0
mirror of https://github.com/D4M13N-D3V/neroshitron.git synced 2025-03-14 10:05:04 +00:00

fix: icons not updating on search

This commit is contained in:
Damien Ostler 2024-05-26 22:09:05 -04:00
parent 323ba05fda
commit 6af5a0ee5d
2 changed files with 3 additions and 2 deletions
app/gallery
components/ui

@ -121,7 +121,7 @@ function PageComponent() {
<div className="grid grid-cols-3 gap-y-36 gap-x-10 h-full overflow-y-auto no-scrollbar pt-20">
{galleries && galleries.map((gallery, index) => (
<GalleryThumbnail
key={index}
key={gallery.id}
id={gallery.id}
title={gallery.name}
columns={gallery.columns}

@ -32,7 +32,7 @@ const GalleryThumbnail = ({ id, columns, onSelect, title, subscription }: Galler
useEffect(() => {
getData();
}, []);
}, [galleryId]);
return (
<div className="py-3 sm:max-w-xl sm:mx-auto flex-3 animate-in">
@ -44,6 +44,7 @@ const GalleryThumbnail = ({ id, columns, onSelect, title, subscription }: Galler
src={thumbnailUrl}
alt=""
onClick={openGallery}
key={galleryId}
style={{ width: '20rem', height: '20rem', objectFit: 'cover' }}
/>
<div className="absolute top-2 left-0 w-full h-10% bg-gray-900 bg-opacity-10 backdrop-blur-sm p-2 rounded-md shadow-lg flex flex-col justify-end">