From 6e26420e0e240060864a659ee1f647ed30e00fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 13 Jul 2024 20:09:37 -0500 Subject: [PATCH] feat: shot type --- .../tankopedia/[id]/components/ShotDisplaySection.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/tools/tankopedia/[id]/components/ShotDisplaySection.tsx b/src/app/tools/tankopedia/[id]/components/ShotDisplaySection.tsx index a7f1a0b85..142d4dba4 100644 --- a/src/app/tools/tankopedia/[id]/components/ShotDisplaySection.tsx +++ b/src/app/tools/tankopedia/[id]/components/ShotDisplaySection.tsx @@ -1,7 +1,12 @@ import { Flex } from '@radix-ui/themes'; import { ShotDisplayCard } from '../../../../../components/Armor/components/ShotDisplayCard'; +import * as TankEphemeral from '../../../../../stores/tankopediaEphemeral'; export function ShotDisplaySection() { + const shot = TankEphemeral.use((state) => state.shot); + + if (!shot) return null; + return ( - + ); }