feat: popup

This commit is contained in:
TrèsAbhi committed 2024-10-24 18:21:37 -05:00
1 parent 05c8e50e82
commit 58271befde
3 files changed
+67 -13

No files matched your search

@@ -1,5 +1,6 @@
import { GalleryList, type Avatar } from '../../../components/Gallery/List';
import { GallerySearch } from '../../../components/Gallery/Search';
import { PageWrapper } from '../../../components/PageWrapper';
import { GalleryEphemeral } from '../../../stores/galleryEphemeral';
interface PageProps {
@@ -8,9 +9,11 @@ interface PageProps {
export function Page({ avatars }: PageProps) {
return (
<GalleryEphemeral.Provider>
<GallerySearch />
<GalleryList avatars={avatars} />
</GalleryEphemeral.Provider>
<PageWrapper color="gold">
<GalleryEphemeral.Provider>
<GallerySearch />
<GalleryList avatars={avatars} />
</GalleryEphemeral.Provider>
</PageWrapper>
);
}
@@ -1,6 +1,5 @@
---
import type { Avatar } from '../../../components/Gallery/List';
import { PageWrapper } from '../../../components/PageWrapper';
import { galleryTool } from '../../../constants/tools';
import { fetchGlossary } from '../../../core/blitz/fetchGlossary';
import ToolLayout from '../../../layouts/ToolLayout.astro';
@@ -22,7 +21,5 @@ const avatars = Object.entries(glossary)
---
<ToolLayout tool={galleryTool}>
<PageWrapper color="gold">
<Page {avatars} client:load />
</PageWrapper>
<Page {avatars} client:load />
</ToolLayout>