Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MISC: Several typo fix in corporation modals #1029

Merged
merged 4 commits into from
Jan 14, 2024

Conversation

cigarmemr
Copy link
Contributor

Missing space between sentences in PurchaseMaterialModal when Smart Supply is enabled:
image

Tested locally:
image

Missing space between colon and number in SellDivisionModal:
image

Tested locally:
image

Missing space between "for" and number:
image

Tested locally:
image

@cigarmemr
Copy link
Contributor Author

Seems that Prettier prevents change in L37. Why?

<Typography>Cities:{getRecordKeys(divisionToSell.offices).length}</Typography>
<Typography>Warehouses:{getRecordKeys(divisionToSell.warehouses).length}</Typography>
<Typography>Cities: {getRecordKeys(divisionToSell.offices).length}</Typography>
<Typography>Warehouses: {getRecordKeys(divisionToSell.warehouses).length}</Typography>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section might look better as a <StatsTable>, which automatically aligns the right column.

@jjclark1982
Copy link
Contributor

Seems that Prettier prevents change in L37. Why?

It enforces a maximum line length, but it usually inserts a space character {" "} when it does so. You can insert that yourself to get the spacing right.

@cigarmemr
Copy link
Contributor Author

Thanks a lot. It seems to be better now.
For divisions with products:
image

Without products:
image

Fix Prettier failure.
Use StatsTable to align columns.
Fix misused ?? operator to show "Products" when the division is capable to produce them.
Add `key` to element in array.
Finally, used Prettier and checked with format:report
@Snarling Snarling merged commit 63574bc into bitburner-official:dev Jan 14, 2024
5 checks passed
G4mingJon4s pushed a commit to G4mingJon4s/bitburner-src that referenced this pull request Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants