mirror of
https://github.com/D4M13N-D3V/neroshitron.git
synced 2025-03-14 10:05:04 +00:00
fix: gallery not opening
This commit is contained in:
parent
f30d2c5a2a
commit
f7190cca48
4
.gitignore
vendored
4
.gitignore
vendored
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user