From 74756ab7bfd800e0dc7e625f85caea4665e53df2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Tue, 9 Apr 2024 09:56:31 -0500 Subject: [PATCH] feat: crew actions --- src/app/tools/compare/page.tsx | 39 ++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/src/app/tools/compare/page.tsx b/src/app/tools/compare/page.tsx index f5ddc687f..32531d58f 100644 --- a/src/app/tools/compare/page.tsx +++ b/src/app/tools/compare/page.tsx @@ -54,6 +54,7 @@ import { useCompareTemporary, } from '../../../stores/compare'; import { EquipmentMatrix } from '../../../stores/duel'; +import { permanentSkills } from '../tankopedia/[id]/components/Characteristics/components/Skills/constants'; import { TankSearch } from '../tankopedia/components/TankSearch'; import { TankControl } from './components/TankControl'; @@ -509,8 +510,11 @@ export default function Page() { backgroundColor: crewSkills[skill] === 0 ? theme.colors.textLowContrast - : theme.colors - .textLowContrast_crimson, + : permanentSkills.includes(skill) + ? theme.colors + .textLowContrast_crimson + : theme.colors + .textLowContrast_amber, }} /> ))} @@ -529,6 +533,37 @@ export default function Page() { }); }} /> + + + + +