mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-14 03:33:52 +01:00
Merge pull request #2680 from attrib/patch-2
Fix formatting of respect needed on gang UI
This commit is contained in:
commit
facca0c2e3
@ -4,7 +4,7 @@
|
|||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import { RecruitModal } from "./RecruitModal";
|
import { RecruitModal } from "./RecruitModal";
|
||||||
import { GangConstants } from "../data/Constants";
|
import { GangConstants } from "../data/Constants";
|
||||||
import { formatNumber } from "../../utils/StringHelperFunctions";
|
import { numeralWrapper } from "../../ui/numeralFormat";
|
||||||
import { useGang } from "./Context";
|
import { useGang } from "./Context";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import Button from "@mui/material/Button";
|
import Button from "@mui/material/Button";
|
||||||
@ -28,7 +28,7 @@ export function RecruitButton(props: IProps): React.ReactElement {
|
|||||||
<Button sx={{ mx: 1 }} disabled>
|
<Button sx={{ mx: 1 }} disabled>
|
||||||
Recruit Gang Member
|
Recruit Gang Member
|
||||||
</Button>
|
</Button>
|
||||||
<Typography>{formatNumber(respect, 2)} respect needed to recruit next member</Typography>
|
<Typography>{numeralWrapper.formatRespect(respect)} respect needed to recruit next member</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user