fix: keys

This commit is contained in:
tresabhi committed 2026-05-05 18:11:49 -05:00
1 parent 16c77f587a
commit 8bda4a5331
2 files changed
+9 -8

No files matched your search

@@ -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() {
<div className={styles.lines}>
{tank.tank!.upgrade_lines.map((line) => (
<Line line={line} />
<Line key={line.name} line={line} />
))}
</div>
</Section>
@@ -43,7 +44,7 @@ function Line({ line }: LineProps) {
const isSelected = upgrades[line.name] === index;
return (
<>
<Fragment key={stage.tech_name}>
{index !== 0 && <CaretDownIcon width="1em" height="1em" />}
<IconButton
@@ -105,7 +106,7 @@ function Line({ line }: LineProps) {
{/* {stage.grade} */}
{/* {stage.number} */}
</IconButton>
</>
</Fragment>
);
})}
</div>