diff --git a/src/app/tools/tank-performance/components/Info.tsx b/src/app/tools/tank-performance/components/Info.tsx index 6588dc43f..e856736fc 100644 --- a/src/app/tools/tank-performance/components/Info.tsx +++ b/src/app/tools/tank-performance/components/Info.tsx @@ -25,9 +25,6 @@ export function Info() { Career stats based on {numberFormat.format(Math.round(samples))}{' '} players with at least 5K career battles and 1 battle in the past 30 days; updated daily. -
- May differ from BlitzStars because BlitzKit includes{' '} - {Math.round(samples / 1e4)}x more players. diff --git a/src/app/tools/tank-performance/components/TankRow.tsx b/src/app/tools/tank-performance/components/TankRow.tsx index 9fe4e10cf..c749cb50e 100644 --- a/src/app/tools/tank-performance/components/TankRow.tsx +++ b/src/app/tools/tank-performance/components/TankRow.tsx @@ -22,6 +22,7 @@ export const TankRow = memo( return ( + {Math.round((averages.mu.wins / averages.mu.battles) * 100)}% diff --git a/src/components/TankRowHeaderCell.tsx b/src/components/TankRowHeaderCell.tsx index 7dcc1d4e7..7b8fbe7e5 100644 --- a/src/components/TankRowHeaderCell.tsx +++ b/src/components/TankRowHeaderCell.tsx @@ -1,14 +1,17 @@ -import { Table } from '@radix-ui/themes'; +import { IconButton, Table } from '@radix-ui/themes'; import { TankDefinition } from '../core/blitzkit/tankDefinitions'; import { tankIcon } from '../core/blitzkit/tankIcon'; -import { ExperimentIcon } from './ExperimentIcon'; +import { classIcons } from './ClassIcon'; import { Link } from './Link'; +import { ScienceIcon } from './ScienceIcon'; interface TankRowHeaderCellProps { tank: TankDefinition; } export function TankRowHeaderCell({ tank }: TankRowHeaderCellProps) { + const Icon = classIcons[tank.class]; + return ( @@ -26,8 +29,14 @@ export function TankRowHeaderCell({ tank }: TankRowHeaderCellProps) { - {tank.testing && ( - - )} + + {tank.name} + + {tank.testing && ( + + + + )} ); diff --git a/src/stores/tankPerformanceSort.ts b/src/stores/tankPerformanceSort.ts index 2bd500a96..28b245245 100644 --- a/src/stores/tankPerformanceSort.ts +++ b/src/stores/tankPerformanceSort.ts @@ -30,7 +30,7 @@ export interface TankPerformanceSort { } export const useTankPerformanceSort = create()(() => ({ - type: 'battles', + type: 'winrate', direction: -1, }));