feat: career stats

This commit is contained in:
TrèsAbhi committed 2023-09-24 17:02:09 -05:00
1 parent 8c041d4eef
commit d801447e5d
6 files changed
+252 -121

No files matched your search

+3 -3
View File
@@ -5,13 +5,13 @@ import { TREE_TYPE_ICONS, TreeTypeEnum } from '../../Tanks';
import { RowStat } from './RowStat';
interface RowProps {
type: 'tank' | 'summary';
type?: 'tank' | 'summary';
title: string;
minimized?: boolean;
treeType?: TreeTypeEnum;
tankType?: TankType;
rows: {
stats: {
title: string;
current?: number | string;
career?: number | string;
@@ -77,7 +77,7 @@ export function Row(props: RowProps) {
paddingBottom: 8,
}}
>
{props.rows.map((row, index) => (
{props.stats.map((row, index) => (
<RowStat
minimized={props.minimized}
key={index}