feat: started work on rating stats

This commit is contained in:
TrèsAbhi committed 2024-03-20 18:03:00 -05:00
1 parent 18edd349f2
commit 5f28b541e3
10 files changed
+154 -96

No files matched your search

+11 -2
View File
@@ -1,5 +1,5 @@
import { Locale } from 'discord.js';
import { AllStats, SupplementaryStats } from '../../core/blitz/getAccountInfo';
import { SupplementaryStats } from '../../core/blitz/getAccountInfo';
import { translator } from '../../core/localization/translator';
import { WN8Display } from './components/WN8Display';
import {
@@ -8,7 +8,16 @@ import {
} from './components/WN8SurroundingStat';
export interface AllStatsOverviewProps {
stats: AllStats;
stats: {
battles: number;
wins: number;
damage_dealt: number;
damage_received: number;
survived_battles: number;
hits: number;
shots: number;
frags: number;
};
supplementaryStats: SupplementaryStats;
locale: Locale;
}
+5 -1
View File
@@ -3,7 +3,11 @@ import { translator } from '../../core/localization/translator';
import { theme } from '../../stitches.config';
interface NoDataProps {
type: 'battles_in_period' | 'players_in_period' | 'tanks_found';
type:
| 'battles_in_period'
| 'players_in_period'
| 'tanks_found'
| 'battles_in_season';
locale: Locale;
}