From 47d7ebb15f67b4f472b7702841182df678369c9f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com>
Date: Sat, 27 Jul 2024 13:29:09 -0500
Subject: [PATCH] fix: stricter emphmeral stores
---
src/app/tools/tankopedia/[id]/layout.tsx | 33 +++++++++++++-----------
src/app/tools/tankopedia/layout.tsx | 10 +++----
2 files changed, 21 insertions(+), 22 deletions(-)
diff --git a/src/app/tools/tankopedia/[id]/layout.tsx b/src/app/tools/tankopedia/[id]/layout.tsx
index 61c38ed14..37c57ae08 100644
--- a/src/app/tools/tankopedia/[id]/layout.tsx
+++ b/src/app/tools/tankopedia/[id]/layout.tsx
@@ -6,6 +6,7 @@ import { tankIcon } from '../../../../core/blitzkit/tankIcon';
import strings from '../../../../lang/en-US.json';
import * as Duel from '../../../../stores/duel';
import * as TankFilters from '../../../../stores/tankFilters';
+import * as TankopediaEphemeral from '../../../../stores/tankopediaEphemeral';
export default async function Layout({
children,
@@ -24,21 +25,23 @@ export default async function Layout({
const description = `Statistics, armor, and equipment for ${tank.name}`;
return (
-
-
- {title}
-
-
-
-
+
+
+
+ {title}
+
+
+
+
- {children}
-
-
+ {children}
+
+
+
);
}
diff --git a/src/app/tools/tankopedia/layout.tsx b/src/app/tools/tankopedia/layout.tsx
index c3755df7b..90aa0fa5b 100644
--- a/src/app/tools/tankopedia/layout.tsx
+++ b/src/app/tools/tankopedia/layout.tsx
@@ -1,14 +1,10 @@
-import * as Duel from '../../../stores/duel';
-import * as TankopediaEphemeral from '../../../stores/tankopediaEphemeral';
import * as TankopediaPersistent from '../../../stores/tankopediaPersistent';
import * as TankopediaSort from '../../../stores/tankopediaSort';
export default function Layout({ children }: { children: React.ReactNode }) {
return (
-
-
- {children}
-
-
+
+ {children}
+
);
}