From c73eb0d95138fb7c17e8eb7fd13f5a2122be60ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com>
Date: Mon, 19 Aug 2024 13:56:04 -0500
Subject: [PATCH] feat: testing warning
---
.../[id]/components/Model/HeroSection.tsx | 31 +++++++++++++------
.../[id]/components/TestingSection.tsx | 23 ++++++++++++++
src/app/tools/tankopedia/[id]/page.tsx | 2 ++
.../components/TankSearch/index.tsx | 4 +--
4 files changed, 49 insertions(+), 11 deletions(-)
create mode 100644 src/app/tools/tankopedia/[id]/components/TestingSection.tsx
diff --git a/src/app/tools/tankopedia/[id]/components/Model/HeroSection.tsx b/src/app/tools/tankopedia/[id]/components/Model/HeroSection.tsx
index d2c728148..f415d4186 100644
--- a/src/app/tools/tankopedia/[id]/components/Model/HeroSection.tsx
+++ b/src/app/tools/tankopedia/[id]/components/Model/HeroSection.tsx
@@ -3,6 +3,7 @@ import { Box, Button, Flex, Heading, Text } from '@radix-ui/themes';
import Link from 'next/link';
import { Suspense, use, useEffect, useMemo, useState } from 'react';
import { classIcons } from '../../../../../../components/ClassIcon';
+import { ScienceIcon } from '../../../../../../components/ScienceIcon';
import { ThicknessRange } from '../../../../../../components/StaticArmor';
import { resolveNearPenetration } from '../../../../../../core/blitz/resolveNearPenetration';
import { tankDefinitions } from '../../../../../../core/blitzkit/tankDefinitions';
@@ -100,15 +101,27 @@ export function HeroSection({ id }: HeroSectionProps) {
-
- Tier {TIER_ROMAN_NUMERALS[protagonist.tier]}{' '}
- {
- (strings.common.nations_adjectives as Record)[
- protagonist.nation
- ]
- }{' '}
- {strings.common.tank_class_short[protagonist.class]}
-
+
+ {tank.testing && (
+
+
+ Tank in testing
+
+
+
+ )}
+
+
+ Tier {TIER_ROMAN_NUMERALS[protagonist.tier]}{' '}
+ {
+ (strings.common.nations_adjectives as Record)[
+ protagonist.nation
+ ]
+ }{' '}
+ {strings.common.tank_class_short[protagonist.class]}
+
+
+