From 63574bca0c15446515452ba6794917b8028bc93b Mon Sep 17 00:00:00 2001 From: Shockwave Date: Mon, 15 Jan 2024 05:12:28 +0800 Subject: [PATCH] MISC: Several typo fix in corporation modals (#1029) --- .../ui/modals/PurchaseMaterialModal.tsx | 2 +- .../ui/modals/SellDivisionModal.tsx | 24 +++++++++++++------ 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/Corporation/ui/modals/PurchaseMaterialModal.tsx b/src/Corporation/ui/modals/PurchaseMaterialModal.tsx index a1249125e..a7afcd8aa 100644 --- a/src/Corporation/ui/modals/PurchaseMaterialModal.tsx +++ b/src/Corporation/ui/modals/PurchaseMaterialModal.tsx @@ -144,7 +144,7 @@ export function PurchaseMaterialModal(props: IProps): React.ReactElement { Enter the amount of {props.mat.name} you would like to purchase per second. This material's cost changes constantly. - {props.disablePurchaseLimit ? "Note: Purchase amount is disabled as smart supply is enabled" : ""} + {props.disablePurchaseLimit ? " Note: Purchase amount is disabled as smart supply is enabled" : ""} - Sold {divisionToSell.name} for , you now have space for + Sold {divisionToSell.name} for , you now have space for{" "} {corp.maxDivisions - corp.divisions.size} more divisions. , ); @@ -56,12 +58,20 @@ export function SellDivisionModal(props: IProps): React.ReactElement { ))} Division {divisionToSell.name} has: - - Profit: / sec{" "} - - Cities:{getRecordKeys(divisionToSell.offices).length} - Warehouses:{getRecordKeys(divisionToSell.warehouses).length} - {divisionToSell.makesProducts ?? Products: {divisionToSell.products.size}} + , + ], + ["Cities:", getRecordKeys(divisionToSell.offices).length], + ["Warehouses:", getRecordKeys(divisionToSell.warehouses).length], + divisionToSell.makesProducts ? ["Products:", divisionToSell.products.size] : [], + ]} + />
Sell price: