MISC: Several typo fix in corporation modals (#1029)

This commit is contained in:
Shockwave 2024-01-15 05:12:28 +08:00 committed by GitHub
parent 44f0a77c4e
commit 63574bca0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 8 deletions

@ -144,7 +144,7 @@ export function PurchaseMaterialModal(props: IProps): React.ReactElement {
<Typography>
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" : ""}
</Typography>
<TextField
value={buyAmt}

@ -2,6 +2,8 @@ import React, { useState } from "react";
import { Modal } from "../../../ui/React/Modal";
import { Money } from "../../../ui/React/Money";
import { MoneyRate } from "../../../ui/React/MoneyRate";
import { StatsTable } from "../../../ui/React/StatsTable";
import Typography from "@mui/material/Typography";
import Button from "@mui/material/Button";
import MenuItem from "@mui/material/MenuItem";
@ -34,7 +36,7 @@ export function SellDivisionModal(props: IProps): React.ReactElement {
props.onClose();
dialogBoxCreate(
<Typography>
Sold <b>{divisionToSell.name}</b> for <Money money={soldPrice} />, you now have space for
Sold <b>{divisionToSell.name}</b> for <Money money={soldPrice} />, you now have space for{" "}
{corp.maxDivisions - corp.divisions.size} more divisions.
</Typography>,
);
@ -56,12 +58,20 @@ export function SellDivisionModal(props: IProps): React.ReactElement {
))}
</Select>
<Typography>Division {divisionToSell.name} has:</Typography>
<Typography>
Profit: <Money money={(divisionToSell.lastCycleRevenue - divisionToSell.lastCycleExpenses) / 10} /> / sec{" "}
</Typography>
<Typography>Cities:{getRecordKeys(divisionToSell.offices).length}</Typography>
<Typography>Warehouses:{getRecordKeys(divisionToSell.warehouses).length}</Typography>
{divisionToSell.makesProducts ?? <Typography>Products: {divisionToSell.products.size}</Typography>}
<StatsTable
rows={[
[
"Profit:",
<MoneyRate
key="profit"
money={(divisionToSell.lastCycleRevenue - divisionToSell.lastCycleExpenses) / 10}
/>,
],
["Cities:", getRecordKeys(divisionToSell.offices).length],
["Warehouses:", getRecordKeys(divisionToSell.warehouses).length],
divisionToSell.makesProducts ? ["Products:", divisionToSell.products.size] : [],
]}
/>
<br />
<Typography>
Sell price: <Money money={price} />