fix: missing tank types

This commit is contained in:
TrèsAbhi committed 2023-12-03 18:16:59 -06:00
1 parent 86664b5491
commit 1d1d751d43
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -5,7 +5,7 @@ import {
GrayColor, GrayColor,
PALETTES, PALETTES,
} from '../../../constants/radixColors'; } from '../../../constants/radixColors';
import { TREE_TYPE_ICONS, TreeTypeEnum } from '../../Tanks'; import { TREE_TYPE_ICONS, TankType, TreeTypeEnum } from '../../Tanks';
import { RowStat } from './RowStat'; import { RowStat } from './RowStat';
export interface RowStatItem { export interface RowStatItem {
@@ -21,7 +21,7 @@ interface RowProps {
title: string; title: string;
minimized?: boolean; minimized?: boolean;
treeType?: TreeTypeEnum; treeType?: TreeTypeEnum;
tankType?: string; tankType?: TankType;
color?: AccentColor | GrayColor; color?: AccentColor | GrayColor;
stats: (RowStatItem | undefined)[]; stats: (RowStatItem | undefined)[];
} }
@@ -72,8 +72,8 @@ export function Row({
? treeType === TreeTypeEnum.Collector ? treeType === TreeTypeEnum.Collector
? theme.textLowContrast_blue ? theme.textLowContrast_blue
: treeType === TreeTypeEnum.Premium : treeType === TreeTypeEnum.Premium
? theme.textLowContrast_amber ? theme.textLowContrast_amber
: theme.textHighContrast : theme.textHighContrast
: theme.textLowContrast, : theme.textLowContrast,
fontWeight: 900, fontWeight: 900,
fontSize: 16, fontSize: 16,
+1 -1
View File
@@ -22,7 +22,7 @@ export const TREE_TYPE_NAMES: Record<TreeTypeString, string> = {
export interface ItemProps { export interface ItemProps {
image?: string; image?: string;
tankType?: string; tankType?: TankType;
name: string; name: string;
treeType: TreeTypeEnum; treeType: TreeTypeEnum;
} }