mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 15:52:55 +01:00
fix: hydration
This commit is contained in:
1 parent
369ac113fa
commit
47b583821e
5 files changed
+37
-24
No files matched your search
@@ -3,7 +3,7 @@ import { AvatarsList } from "../../../components/AvatarsList";
|
||||
import { Section } from "../../../components/Section";
|
||||
import { LocaleProvider } from "../../../hooks/useLocale";
|
||||
|
||||
interface PageProps extends ContentProps {
|
||||
interface PageProps {
|
||||
locale: string;
|
||||
}
|
||||
|
||||
@@ -15,11 +15,7 @@ export function Page({ locale, ...props }: PageProps) {
|
||||
);
|
||||
}
|
||||
|
||||
interface ContentProps {
|
||||
skeleton?: boolean;
|
||||
}
|
||||
|
||||
function Content({}: ContentProps) {
|
||||
function Content() {
|
||||
return (
|
||||
<>
|
||||
<Section>
|
||||
|
||||
@@ -11,8 +11,5 @@ const { locale } = Astro.props;
|
||||
|
||||
<BaseLayout {locale} accent="gold">
|
||||
<ToolBanner {locale} tool={tools.avatars} slot="pre-app" />
|
||||
|
||||
<Page {locale} client:only="react">
|
||||
<Page {locale} skeleton slot="fallback" />
|
||||
</Page>
|
||||
<Page {locale} client:load />
|
||||
</BaseLayout>
|
||||
Reference in new issue
Block a user