mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: career stats
This commit is contained in:
1 parent
8c041d4eef
commit
d801447e5d
6 files changed
+252
-121
No files matched your search
@@ -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}
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user