mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-17 10:53:57 +01:00
feat: cu tank icons
This commit is contained in:
1 parent
ba4e6dfd68
commit
c674da29d5
3 files changed
+9
-3
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { api } from "../../core/api/dynamic";
|
||||
import { clientUnmounted } from "../../core/game/game";
|
||||
import { useAwait } from "../../hooks/useAwait";
|
||||
import { useGameStrings } from "../../hooks/useGameStrings";
|
||||
import { useLocale } from "../../hooks/useLocale";
|
||||
@@ -42,7 +43,9 @@ export function TankCard(props: PropsWithSkeleton<TankCardProps>) {
|
||||
<div
|
||||
className={styles.icon}
|
||||
style={{
|
||||
backgroundImage: `url(/api/tanks/${props.id}.webp)`,
|
||||
backgroundImage: clientUnmounted
|
||||
? `url(/api/unmounted/tank.png)`
|
||||
: `url(/api/tanks/${props.id}.webp)`,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user