fix: gallery not opening

This commit is contained in:
Damien Ostler 2024-06-01 16:29:41 -04:00
parent f30d2c5a2a
commit f7190cca48
2 changed files with 7 additions and 1 deletions

4
.gitignore vendored
View File

@ -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

View File

@ -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<boolean>(nsfw);
@ -19,6 +20,7 @@ const Galleries = ({ nsfw, tags, search }:TagProps) => {
const selectGallery = (gallery: string) => {
setSelectedGallery(gallery);
gallerySelected(gallery);
};
console.log(tags)