From 61d6d4274215ebdacf6850977e9137086e74cdce Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Mon, 18 May 2026 16:57:21 -0500 Subject: [PATCH] hide modules for no-up --- package.json | 10 +--------- .../src/components/TankopediaLoadout/index.tsx | 9 ++++++++- scripts/dev.sh | 2 ++ 3 files changed, 11 insertions(+), 10 deletions(-) create mode 100755 scripts/dev.sh diff --git a/package.json b/package.json index 3d7d8e90d..07be900b7 100644 --- a/package.json +++ b/package.json @@ -5,15 +5,7 @@ "private": true, "scripts": { "setup": "chmod a+x scripts/*.sh && ./scripts/setup.sh", - "dev": "bun run dev:website", - "dev:website": "cd packages/website-ue && bun run dev", - "build:game": "cd packages/game && bun run build", - "build:website": "cd packages/website-ue && bun run build", - "build:proxyclient": "cd packages/scripts && bun run build:proxyclient", - "build:catalogitemaccessor": "cd packages/scripts && bun run build:catalogitemaccessor", - "build:protos": "cd packages/scripts && bun run build:protos", - "lint": "tsc", - "lint:website": "cd packages/website-ue && bun run lint" + "dev": "./scripts/dev.sh" }, "type": "module", "workspaces": [ diff --git a/packages/website-ue/src/components/TankopediaLoadout/index.tsx b/packages/website-ue/src/components/TankopediaLoadout/index.tsx index 1b1f49283..55083e4d3 100644 --- a/packages/website-ue/src/components/TankopediaLoadout/index.tsx +++ b/packages/website-ue/src/components/TankopediaLoadout/index.tsx @@ -28,9 +28,15 @@ import { Text } from "../Text"; import styles from "./index.module.css"; export function TankopediaLoadout() { + const tank = useProtagonist(); + + const showModules = tank.tank!.upgrade_lines.some( + (line) => line.stages.length > 1 || line.name in alternativeLines, + ); + return (
- + {showModules && }
); @@ -199,6 +205,7 @@ function Modules() {
+ {/* TODO: hide lines with 1 module except for alts */} {tank.tank!.upgrade_lines.map((line) => (