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}
+1 -1
View File
@@ -23,7 +23,7 @@ export function Button({ color, style, ...props }: ButtonProps) {
backgroundColor:
theme.colors[`componentInteractive${BUTTON_COLORS[color]}`],
borderRadius: 4,
border: theme.borderStyles[`interactive${BUTTON_COLORS[color]}`],
border: 'none',
cursor: 'pointer',
padding: 8,
display: 'flex',
-1
View File
@@ -14,7 +14,6 @@ export const SearchBar = forwardRef<HTMLInputElement, ComponentProps<'input'>>(
display: 'flex',
padding: 8,
borderRadius: 4,
border: theme.borderStyles.interactive,
backgroundColor: theme.colors.componentInteractive,
color: theme.colors.textLowContrast,
fontSize: 16,