Fix UI regression for crime in progress (#621)

This commit is contained in:
Snarling 2023-06-16 22:24:32 -04:00 committed by GitHub
parent a4b826683e
commit c2dacedcb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,8 +1,5 @@
import React from "react"; import React from "react";
import { Box, Button, Container, Paper, Table, TableBody, Tooltip, Typography } from "@mui/material";
import { Box, Container, Paper, Table, TableBody, TableRow, TableCell, Tooltip } from "@mui/material";
import Button from "@mui/material/Button";
import Typography from "@mui/material/Typography";
import { Player } from "@player"; import { Player } from "@player";
import { FactionWorkType, LocationName } from "@enums"; import { FactionWorkType, LocationName } from "@enums";
@ -220,14 +217,12 @@ export function WorkInProgressRoot(): React.ReactElement {
title: `You are attempting ${crime.workName}`, title: `You are attempting ${crime.workName}`,
gains: [ gains: [
<TableRow key="header"> <tr key="header">
<TableCell> <td>
<Typography>Success chance: ${formatPercent(successChance)}</Typography> <Typography>Success chance: {formatPercent(successChance)}</Typography>
</TableCell>
<TableCell>
<Typography>Gains (on success)</Typography> <Typography>Gains (on success)</Typography>
</TableCell> </td>
</TableRow>, </tr>,
<StatsRow key="money" name="Money:" color={Settings.theme.money}> <StatsRow key="money" name="Money:" color={Settings.theme.money}>
<Typography> <Typography>
<Money money={gains.money} /> <Money money={gains.money} />