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; }