From 1d1d751d4338d56443d79e8f27fef6cce199af78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 3 Dec 2023 18:16:59 -0600 Subject: [PATCH] fix: missing tank types --- src/components/Breakdown/components/Row.tsx | 8 ++++---- src/components/Tanks/components/Item.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Breakdown/components/Row.tsx b/src/components/Breakdown/components/Row.tsx index 13040c43a..13da1e0f2 100644 --- a/src/components/Breakdown/components/Row.tsx +++ b/src/components/Breakdown/components/Row.tsx @@ -5,7 +5,7 @@ import { GrayColor, PALETTES, } from '../../../constants/radixColors'; -import { TREE_TYPE_ICONS, TreeTypeEnum } from '../../Tanks'; +import { TREE_TYPE_ICONS, TankType, TreeTypeEnum } from '../../Tanks'; import { RowStat } from './RowStat'; export interface RowStatItem { @@ -21,7 +21,7 @@ interface RowProps { title: string; minimized?: boolean; treeType?: TreeTypeEnum; - tankType?: string; + tankType?: TankType; color?: AccentColor | GrayColor; stats: (RowStatItem | undefined)[]; } @@ -72,8 +72,8 @@ export function Row({ ? treeType === TreeTypeEnum.Collector ? theme.textLowContrast_blue : treeType === TreeTypeEnum.Premium - ? theme.textLowContrast_amber - : theme.textHighContrast + ? theme.textLowContrast_amber + : theme.textHighContrast : theme.textLowContrast, fontWeight: 900, fontSize: 16, diff --git a/src/components/Tanks/components/Item.tsx b/src/components/Tanks/components/Item.tsx index ce3f5ba35..d92e33bd9 100644 --- a/src/components/Tanks/components/Item.tsx +++ b/src/components/Tanks/components/Item.tsx @@ -22,7 +22,7 @@ export const TREE_TYPE_NAMES: Record = { export interface ItemProps { image?: string; - tankType?: string; + tankType?: TankType; name: string; treeType: TreeTypeEnum; }