Fix: aligned airbase spawn menu to other menus

This commit is contained in:
Davide Passoni 2025-03-26 10:33:11 +01:00
parent 7ae15239b1
commit 3d61b7e1a7

View File

@ -72,6 +72,8 @@ export function AirbaseMenu(props: { open: boolean; onClose: () => void; childre
});
}
filteredBlueprints.sort((a, b) => a.label.localeCompare(b.label));
return (
<Menu title={airbase?.getName() ?? "No airbase selected"} open={props.open} onClose={props.onClose} showBackButton={false}>
<div
@ -204,7 +206,7 @@ export function AirbaseMenu(props: { open: boolean; onClose: () => void; childre
return (
<OlUnitListEntry
key={blueprint.name}
icon={olButtonsVisibilityAircraft}
silhouette={blueprint.filename}
blueprint={blueprint}
onClick={() => setBlueprint(blueprint)}
showCost={showCost}
@ -258,7 +260,7 @@ export function AirbaseMenu(props: { open: boolean; onClose: () => void; childre
return (
<OlUnitListEntry
key={blueprint.name}
icon={olButtonsVisibilityHelicopter}
silhouette={blueprint.filename}
blueprint={blueprint}
onClick={() => setBlueprint(blueprint)}
showCost={showCost}