mirror of
https://github.com/D4M13N-D3V/neroshitron.git
synced 2025-06-16 13:19:17 +00:00
fix: gallery not opening (#5)
This commit is contained in:
parent
f30d2c5a2a
commit
bef53cadce
4
.gitignore
vendored
4
.gitignore
vendored
@ -23,3 +23,7 @@ yarn-error.log*
|
|||||||
/supabase/volumes/db/data
|
/supabase/volumes/db/data
|
||||||
/supabase/volumes/storage
|
/supabase/volumes/storage
|
||||||
supabase.zip
|
supabase.zip
|
||||||
|
.idea/workspace.xml
|
||||||
|
.idea/copilot/chatSessions/xd.lck
|
||||||
|
.idea/copilot/chatSessions/blobs/version
|
||||||
|
.idea/copilot/chatSessions/00000000000.xd
|
||||||
|
@ -6,9 +6,10 @@ interface TagProps {
|
|||||||
nsfw: boolean;
|
nsfw: boolean;
|
||||||
tags: string[];
|
tags: string[];
|
||||||
search: 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 [galleries, setGalleries] = useState([]);
|
||||||
const [nsfwState, setNsfwState] = useState<boolean>(nsfw);
|
const [nsfwState, setNsfwState] = useState<boolean>(nsfw);
|
||||||
@ -19,6 +20,7 @@ const Galleries = ({ nsfw, tags, search }:TagProps) => {
|
|||||||
|
|
||||||
const selectGallery = (gallery: string) => {
|
const selectGallery = (gallery: string) => {
|
||||||
setSelectedGallery(gallery);
|
setSelectedGallery(gallery);
|
||||||
|
gallerySelected(gallery);
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(tags)
|
console.log(tags)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user