feat: variable player count

This commit is contained in:
TrèsAbhi committed 2024-07-12 13:53:11 -05:00
1 parent d6fc037d4f
commit 03ce75c15d
15 files changed
+149 -28

No files matched your search

+6 -5
View File
@@ -1,9 +1,9 @@
import { TankPerformanceSortType } from '.';
export const tankPerformanceSortTypeNames = {
export const TankPerformanceSortTypeNames = {
winrate: 'Winrate',
players: 'Players (30d)',
battles: 'Battles (career)',
players: 'Players',
battles: 'Battles (total)',
damage: 'Damage',
survival: 'Survival',
xp: 'XP',
@@ -16,6 +16,7 @@ export const tankPerformanceSortTypeNames = {
damageTaken: 'Dmg. taken',
capturePoints: 'Cap points',
} as const;
export const tankPerformanceSortTypeNamesArray = Object.keys(
tankPerformanceSortTypeNames,
export const TankPerformanceSortTypeNamesArray = Object.keys(
TankPerformanceSortTypeNames,
) as TankPerformanceSortType[];
+2 -2
View File
@@ -2,9 +2,9 @@
import { create } from 'zustand';
import { createNextSafeStore } from '../../core/zustand/createNextSafeStore';
import { tankPerformanceSortTypeNames } from './constants';
import { TankPerformanceSortTypeNames } from './constants';
export type TankPerformanceSortType = keyof typeof tankPerformanceSortTypeNames;
export type TankPerformanceSortType = keyof typeof TankPerformanceSortTypeNames;
export interface TankPerformanceSort {
type: TankPerformanceSortType;