mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
fix: all commands now work with a lack of tankopedia entries
This commit is contained in:
1 parent
f907c79d68
commit
ca208e44a1
12 files changed
+59
-26
No files matched your search
@@ -2,7 +2,7 @@ import { TANK_ICONS, TankType } from '../../../core/blitz/tankopedia.js';
|
||||
|
||||
export interface ItemProps {
|
||||
icon?: string;
|
||||
type: TankType;
|
||||
type?: TankType;
|
||||
name: string;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,10 @@ export function Item({ icon, type, name }: ItemProps) {
|
||||
{icon && <img src={icon} style={{ flex: 1, objectFit: 'contain' }} />}
|
||||
|
||||
<div style={{ display: 'flex', margin: 'auto', gap: 4 }}>
|
||||
<img src={TANK_ICONS[type]} style={{ width: 14, height: 14 }} />
|
||||
{type && (
|
||||
<img src={TANK_ICONS[type]} style={{ width: 14, height: 14 }} />
|
||||
)}
|
||||
|
||||
<span
|
||||
style={{ fontSize: 16, textAlign: 'center', whiteSpace: 'nowrap' }}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user