mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
@@ -155,18 +155,18 @@ export default class AvailableModulesMenu extends TranslatedComponent {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const mountSymbol = MOUNT_MAP[meta.mount];
|
const mountSymbol = MOUNT_MAP[meta.mount] || '';
|
||||||
const li = (
|
const li = (
|
||||||
<li key={Item} data-id={Item}
|
<li key={Item} data-id={Item}
|
||||||
ref={Item === mountedModule.getItem() ? (ref) => { this.activeSlotRef = ref; } : undefined}
|
ref={Item === mountedModule.getItem() ? (ref) => { this.activeSlotRef = ref; } : undefined}
|
||||||
className={cn('c', {
|
className={cn(meta.type === 'armour' ? 'lc' : 'c', {
|
||||||
warning: !disabled && warning && warning(info),
|
warning: !disabled && warning && warning(info),
|
||||||
active: mountedModule.getItem() === Item,
|
active: mountedModule.getItem() === Item,
|
||||||
disabled,
|
disabled,
|
||||||
hardpoint: mountSymbol,
|
hardpoint: mountSymbol,
|
||||||
})}
|
})}
|
||||||
{...eventHandlers}
|
{...eventHandlers}
|
||||||
>{mountSymbol}{meta.class}{meta.rating}</li>
|
>{meta.type === 'armour' ? Item : `${mountSymbol}${meta.class}${meta.rating}`}</li>
|
||||||
);
|
);
|
||||||
|
|
||||||
const tail = elems.pop();
|
const tail = elems.pop();
|
||||||
|
|||||||
Reference in New Issue
Block a user