diff --git a/src/app/tools/tankopedia/[id]/components/Model/HistoricalSection.tsx b/src/app/tools/tankopedia/[id]/components/Model/HistoricalSection.tsx
deleted file mode 100644
index 360bff26e..000000000
--- a/src/app/tools/tankopedia/[id]/components/Model/HistoricalSection.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import { Heading, Text } from '@radix-ui/themes';
-import PageWrapper from '../../../../../../components/PageWrapper';
-import { useDuel } from '../../../../../../stores/duel';
-
-export function HistoricalSection() {
- const tank = useDuel((state) => state.protagonist!.tank);
-
- if (!tank.description) return null;
-
- return (
-
- History of the {tank.name}
- {tank.description}
-
- );
-}
diff --git a/src/app/tools/tankopedia/[id]/components/Videos.tsx b/src/app/tools/tankopedia/[id]/components/Videos.tsx
deleted file mode 100644
index 1ff65788d..000000000
--- a/src/app/tools/tankopedia/[id]/components/Videos.tsx
+++ /dev/null
@@ -1,45 +0,0 @@
-import { Flex, Heading, Link, Text } from '@radix-ui/themes';
-import { use } from 'react';
-import PageWrapper from '../../../../../components/PageWrapper';
-import { videoDefinitions } from '../../../../../core/blitzkit/videos';
-import { useDuel } from '../../../../../stores/duel';
-
-export function Videos() {
- const tank = useDuel((state) => state.protagonist!.tank);
- const awaitedVideoDefinitions = use(videoDefinitions);
- const videos = awaitedVideoDefinitions[tank.id]?.videos ?? [];
-
- if (videos.length === 0) return null;
-
- return (
-
-
-
- Review videos
- BlitzKit does not endorse any review videos.
-
-
-
- {videos.map((video) => (
-
-
-
- ))}
-
-
-
- );
-}
diff --git a/src/app/tools/tankopedia/[id]/layout.tsx b/src/app/tools/tankopedia/[id]/layout.tsx
index 7363ca98b..077062028 100644
--- a/src/app/tools/tankopedia/[id]/layout.tsx
+++ b/src/app/tools/tankopedia/[id]/layout.tsx
@@ -1,7 +1,10 @@
+import { Flex, Heading, Link, Text } from '@radix-ui/themes';
import { ReactNode } from 'react';
+import PageWrapper from '../../../../components/PageWrapper';
import { tankDefinitions } from '../../../../core/blitzkit/tankDefinitions';
import { TIER_ROMAN_NUMERALS } from '../../../../core/blitzkit/tankDefinitions/constants';
import { tankIcon } from '../../../../core/blitzkit/tankIcon';
+import { videoDefinitions } from '../../../../core/blitzkit/videos';
import strings from '../../../../lang/en-US.json';
interface TankopediaLayoutProps {
@@ -15,11 +18,13 @@ export default async function TankopediaLayout({
}: TankopediaLayoutProps) {
const id = Number(params.id);
const awaitedTankDefinitions = await tankDefinitions;
+ const awaitedVideoDefinitions = await videoDefinitions;
const tank = awaitedTankDefinitions[id];
const title = `${tank.name} - Tier ${TIER_ROMAN_NUMERALS[tank.tier]} ${
(strings.common.nations_adjectives as Record)[tank.nation]
} ${strings.common.tank_class_short[tank.class]}`;
const description = `Statistics, armor profiles, and equipment for ${tank.name}`;
+ const videos = awaitedVideoDefinitions[tank.id]?.videos ?? [];
return (
<>
@@ -30,6 +35,42 @@ export default async function TankopediaLayout({
{children}
+
+
+
+
+ Review videos
+
+ BlitzKit does not endorse any review videos.
+
+
+
+
+ {videos.map((video) => (
+
+
+
+ ))}
+
+
+
+
+ History of the {tank.name}
+ {tank.description}
+
>
);
}
diff --git a/src/app/tools/tankopedia/[id]/page.tsx b/src/app/tools/tankopedia/[id]/page.tsx
index 9680fd91f..52e2a425f 100644
--- a/src/app/tools/tankopedia/[id]/page.tsx
+++ b/src/app/tools/tankopedia/[id]/page.tsx
@@ -7,10 +7,8 @@ import { mutateDuel, useDuel } from '../../../../stores/duel';
import { mutateTankopediaTemporary } from '../../../../stores/tankopedia';
import { CharacteristicsSection } from './components/Model/CharacteristicsSection';
import { HeroSection } from './components/Model/HeroSection';
-import { HistoricalSection } from './components/Model/HistoricalSection';
import { TankopediaPlug } from './components/Model/TankopediaPlug';
import { TechTreeSection } from './components/Model/TechTreeSection';
-import { Videos } from './components/Videos';
export default function Page({ params }: { params: { id: string } }) {
const initialId = parseInt(params.id);
@@ -79,8 +77,6 @@ export default function Page({ params }: { params: { id: string } }) {
{/* */}
-
-
>
)}
diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx
index 182fe7f22..34c259ab4 100644
--- a/src/components/Navbar/index.tsx
+++ b/src/components/Navbar/index.tsx
@@ -1,5 +1,3 @@
-'use client';
-
import {
Cross1Icon,
DiscordLogoIcon,