From 3b933f2cbc746dbbfa24cc0afbf6fbfc1cac63de Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sat, 9 Nov 2024 19:20:41 -0600 Subject: [PATCH] fix: stat display --- packages/website/src/components/GunAutoloaderIcon.tsx | 6 +++--- packages/website/src/components/GunAutoreloaderIcon.tsx | 2 +- packages/website/src/components/GunRegularIcon.tsx | 2 +- .../src/components/TankSearch/components/TankCard/index.tsx | 4 ++++ 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/website/src/components/GunAutoloaderIcon.tsx b/packages/website/src/components/GunAutoloaderIcon.tsx index 10e2274b8..ca3b1f25c 100644 --- a/packages/website/src/components/GunAutoloaderIcon.tsx +++ b/packages/website/src/components/GunAutoloaderIcon.tsx @@ -15,21 +15,21 @@ export function GunAutoloaderIcon(props: ComponentProps<'svg'>) { fill="currentColor" stroke="currentColor" stroke-width="2" - stroke-linejoin="round" + strokeLinejoin="round" /> ); diff --git a/packages/website/src/components/GunAutoreloaderIcon.tsx b/packages/website/src/components/GunAutoreloaderIcon.tsx index 55f58ff8b..d3c25f3de 100644 --- a/packages/website/src/components/GunAutoreloaderIcon.tsx +++ b/packages/website/src/components/GunAutoreloaderIcon.tsx @@ -16,7 +16,7 @@ export function GunAutoreloaderIcon(props: ComponentProps<'svg'>) { fill="currentColor" stroke="currentColor" stroke-width="2" - stroke-linejoin="round" + strokeLinejoin="round" /> ) { fill="currentColor" stroke="currentColor" stroke-width="2" - stroke-linejoin="round" + strokeLinejoin="round" /> ); diff --git a/packages/website/src/components/TankSearch/components/TankCard/index.tsx b/packages/website/src/components/TankSearch/components/TankCard/index.tsx index d9c63e4c6..093d78604 100644 --- a/packages/website/src/components/TankSearch/components/TankCard/index.tsx +++ b/packages/website/src/components/TankSearch/components/TankCard/index.tsx @@ -63,6 +63,10 @@ export function TankCard({ tank, onSelect }: TankCardProps) { return shell1 ? shell1.penetration.near.toFixed(0) : '--'; case 'fire.shellVelocity': return shell0.velocity.toFixed(0); + case 'fire.shellCapacity': + return gun.gun_type!.value.base.shell_capacity.toFixed(0); + case 'fire.shellRange': + return shell0.range.toFixed(0); case 'fire.gunDepression': return ( gunModelDefinition.pitch.max +