diff --git a/.gitignore b/.gitignore index 0ca5675..00bf3d3 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,7 @@ yarn-error.log* /supabase/volumes/db/data /supabase/volumes/storage supabase.zip +.idea/workspace.xml +.idea/copilot/chatSessions/xd.lck +.idea/copilot/chatSessions/blobs/version +.idea/copilot/chatSessions/00000000000.xd diff --git a/components/neroshitron/galleries.tsx b/components/neroshitron/galleries.tsx index 72ef1e6..8875888 100644 --- a/components/neroshitron/galleries.tsx +++ b/components/neroshitron/galleries.tsx @@ -6,9 +6,10 @@ interface TagProps { nsfw: boolean; tags: string[]; search: string; + gallerySelected: (gallery: string) => void; } -const Galleries = ({ nsfw, tags, search }:TagProps) => { +const Galleries = ({ nsfw, tags, search, gallerySelected }:TagProps) => { const [galleries, setGalleries] = useState([]); const [nsfwState, setNsfwState] = useState(nsfw); @@ -19,6 +20,7 @@ const Galleries = ({ nsfw, tags, search }:TagProps) => { const selectGallery = (gallery: string) => { setSelectedGallery(gallery); + gallerySelected(gallery); }; console.log(tags)