From f945786e2f328a8a02c6890ed8fb46964c4a0627 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Tue, 26 May 2026 11:41:08 -0500 Subject: [PATCH] unselect all equipment button --- .../src/components/TankopediaLoadout/index.tsx | 15 +++++++++++++++ .../pages/[...locale]/tanks/[slug]/index.astro | 3 +++ 2 files changed, 18 insertions(+) diff --git a/packages/website-ue/src/components/TankopediaLoadout/index.tsx b/packages/website-ue/src/components/TankopediaLoadout/index.tsx index 4ec4358fe..420a9cb67 100644 --- a/packages/website-ue/src/components/TankopediaLoadout/index.tsx +++ b/packages/website-ue/src/components/TankopediaLoadout/index.tsx @@ -5,9 +5,11 @@ import { StandardPrice } from "@protos/blitz_static_standard_price"; import type { UpgradeLine } from "@protos/blitz_static_tank_upgrade_line"; import type { StageParameters } from "@protos/blitz_static_tank_upgrade_single_stage"; import { + ButtonIcon, CornerBottomLeftIcon, DoubleArrowLeftIcon, DoubleArrowRightIcon, + TrashIcon, } from "@radix-ui/react-icons"; import { chunk } from "lodash-es"; import { useMemo } from "react"; @@ -76,6 +78,19 @@ function Equipment() {
{strings.tanks.loadout.equipment} + + { + Tankopedia.mutate((draft) => { + for (const key in draft.protagonist.equipment) { + delete draft.protagonist.equipment[key]; + } + }); + }} + > + +
diff --git a/packages/website-ue/src/pages/[...locale]/tanks/[slug]/index.astro b/packages/website-ue/src/pages/[...locale]/tanks/[slug]/index.astro index bc3db8c20..065522b4c 100644 --- a/packages/website-ue/src/pages/[...locale]/tanks/[slug]/index.astro +++ b/packages/website-ue/src/pages/[...locale]/tanks/[slug]/index.astro @@ -5,6 +5,7 @@ import { mixStaticPaths } from "../../../../astro/mixStaticPaths"; import BaseLayout from "../../../../layouts/BaseLayout.astro"; import { getStaticPaths as _getStaticPaths } from "../index.astro"; import { Page } from "./_index"; +import ColorScale from "../../../../components/ColorScale.astro"; export const getStaticPaths = mixStaticPaths(_getStaticPaths, async () => { const { list } = await api.tankList(); @@ -19,5 +20,7 @@ const { id, locale } = Astro.props; --- + +