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,
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,
+1 -1
View File
@@ -22,7 +22,7 @@ export const TREE_TYPE_NAMES: Record<TreeTypeString, string> = {
export interface ItemProps {
image?: string;
tankType?: string;
tankType?: TankType;
name: string;
treeType: TreeTypeEnum;
}