mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: shot type
This commit is contained in:
1 parent
0808505af3
commit
6e26420e0e
1 file changed
+6
-1
@@ -1,7 +1,12 @@
|
|||||||
import { Flex } from '@radix-ui/themes';
|
import { Flex } from '@radix-ui/themes';
|
||||||
import { ShotDisplayCard } from '../../../../../components/Armor/components/ShotDisplayCard';
|
import { ShotDisplayCard } from '../../../../../components/Armor/components/ShotDisplayCard';
|
||||||
|
import * as TankEphemeral from '../../../../../stores/tankopediaEphemeral';
|
||||||
|
|
||||||
export function ShotDisplaySection() {
|
export function ShotDisplaySection() {
|
||||||
|
const shot = TankEphemeral.use((state) => state.shot);
|
||||||
|
|
||||||
|
if (!shot) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex
|
<Flex
|
||||||
justify="center"
|
justify="center"
|
||||||
@@ -10,7 +15,7 @@ export function ShotDisplaySection() {
|
|||||||
sm: 'none',
|
sm: 'none',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ShotDisplayCard />
|
<ShotDisplayCard shot={shot} />
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user