From 8bda4a5331924195a45c8583538753d3d8fdd695 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Tue, 5 May 2026 18:11:49 -0500 Subject: [PATCH] fix: keys --- .../src/components/TankopediaLoadout/index.tsx | 7 ++++--- .../src/pages/[...locale]/tanks/[slug]/_index.tsx | 10 +++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/website-ue/src/components/TankopediaLoadout/index.tsx b/packages/website-ue/src/components/TankopediaLoadout/index.tsx index 641102241..c5995dfb9 100644 --- a/packages/website-ue/src/components/TankopediaLoadout/index.tsx +++ b/packages/website-ue/src/components/TankopediaLoadout/index.tsx @@ -1,5 +1,6 @@ import type { UpgradeLine } from "@blitzkit/closed/protos/game/proto/legacy/blitz_static_tank_upgrade_line"; import { CaretDownIcon } from "@radix-ui/react-icons"; +import { Fragment } from "react"; import { api } from "../../core/api/dynamic"; import { useAwait } from "../../hooks/useAwait"; import { useStrings } from "../../hooks/useStrings"; @@ -21,7 +22,7 @@ export function TankopediaLoadout() {
{tank.tank!.upgrade_lines.map((line) => ( - + ))}
@@ -43,7 +44,7 @@ function Line({ line }: LineProps) { const isSelected = upgrades[line.name] === index; return ( - <> + {index !== 0 && } - + ); })} diff --git a/packages/website-ue/src/pages/[...locale]/tanks/[slug]/_index.tsx b/packages/website-ue/src/pages/[...locale]/tanks/[slug]/_index.tsx index f2a2b55e2..7536a398f 100644 --- a/packages/website-ue/src/pages/[...locale]/tanks/[slug]/_index.tsx +++ b/packages/website-ue/src/pages/[...locale]/tanks/[slug]/_index.tsx @@ -1,4 +1,4 @@ -import { useMemo } from "react"; +import { Fragment, useMemo } from "react"; import { TankopediaLoadout } from "../../../../components/TankopediaLoadout"; import { api } from "../../../../core/api/dynamic"; import { characteristicsOrder } from "../../../../core/tankopedia/characteristicsOrder"; @@ -152,12 +152,12 @@ function Content() { {characteristicsOrder.map((group) => { return ( - <> +

{group.group}

{group.order.map((item) => { if ("toy" in item) { - return toy: {item.toy}; + return toy: {item.toy}; } const value = characteristics[item.name]; @@ -165,12 +165,12 @@ function Content() { if (value == null) return null; return ( - + {item.name}: {renderCharacteristic(value, item)} ); })} - +
); })}