From bef53cadcefc094649f440a95a01ef72bc2a69b0 Mon Sep 17 00:00:00 2001 From: Damien Ostler Date: Sat, 1 Jun 2024 16:29:58 -0400 Subject: [PATCH] fix: gallery not opening (#5) --- .gitignore | 4 ++++ components/neroshitron/galleries.tsx | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) 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)