From 82a001c9621cacfe3ef98b935ba63dd0891d5a8a Mon Sep 17 00:00:00 2001 From: borisflagell Date: Sun, 22 May 2022 11:52:45 +0200 Subject: [PATCH 1/2] UI: FIX #3376 Add a Total Profit line on Corporation Overview Add a Total Profit line on Corporation Overview. Feels a bit like a low added-value bloat. But division did use that pattern already, so I guess it can count as streamlining. --- src/Corporation/ui/Overview.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Corporation/ui/Overview.tsx b/src/Corporation/ui/Overview.tsx index e43d0d327..6a2ce658b 100644 --- a/src/Corporation/ui/Overview.tsx +++ b/src/Corporation/ui/Overview.tsx @@ -60,6 +60,7 @@ export function Overview({ rerender }: IProps): React.ReactElement { ["Total Funds:", ], ["Total Revenue:", ], ["Total Expenses:", ], + ["Total Profit:", ], ["Publicly Traded:", corp.public ? "Yes" : "No"], ["Owned Stock Shares:", numeralWrapper.format(corp.numShares, "0.000a")], ["Stock Price:", corp.public ? : "N/A"], From 5bc1d293ca14f717d967ff4a345fe1ace1ffdd4c Mon Sep 17 00:00:00 2001 From: borisflagell Date: Sun, 22 May 2022 11:59:14 +0200 Subject: [PATCH 2/2] prettier --- src/Corporation/ui/Overview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Corporation/ui/Overview.tsx b/src/Corporation/ui/Overview.tsx index 6a2ce658b..e2856867a 100644 --- a/src/Corporation/ui/Overview.tsx +++ b/src/Corporation/ui/Overview.tsx @@ -60,7 +60,7 @@ export function Overview({ rerender }: IProps): React.ReactElement { ["Total Funds:", ], ["Total Revenue:", ], ["Total Expenses:", ], - ["Total Profit:", ], + ["Total Profit:", ], ["Publicly Traded:", corp.public ? "Yes" : "No"], ["Owned Stock Shares:", numeralWrapper.format(corp.numShares, "0.000a")], ["Stock Price:", corp.public ? : "N/A"],