feat: warning

This commit is contained in:
tresabhi committed 2026-05-05 17:23:22 -05:00
1 parent 0e76184813
commit 1ba6e70c56
3 files changed
+62

No files matched your search

@@ -1,6 +1,7 @@
---
import locales from "@blitzkit/i18n/locales.json";
import type { GetStaticPaths } from "astro";
import ClientUnmountedWarning from "../../components/ClientUnmountedWarning.astro";
import ColorScale from "../../components/ColorScale.astro";
import HomeCosmetics from "../../components/HomeCosmetics.astro";
import HomeGames from "../../components/HomeGames.astro";
@@ -8,6 +9,7 @@ import HomeHero from "../../components/HomeHero.astro";
import HomePlayers from "../../components/HomePlayers.astro";
import HomeTanks from "../../components/HomeTanks.astro";
import HomeTechnical from "../../components/HomeTechnical.astro";
import { clientUnmounted } from "../../core/game/game";
import { tools } from "../../core/tools/tools";
import BaseLayout from "../../layouts/BaseLayout.astro";
@@ -28,6 +30,14 @@ const { locale } = Astro.props;
{Object.values(tools).map((tool) => <ColorScale color={tool.accent} />)}
{
clientUnmounted && (
<>
<ColorScale color="red" />
<ClientUnmountedWarning {locale} />
</>
)
}
<HomeTanks {locale} />
<HomePlayers {locale} />
<HomeGames {locale} />