Merge pull request #1486 from danielyxie/dev

fix completed black op being invisible.
This commit is contained in:
hydroflame 2021-10-14 13:57:39 -04:00 committed by GitHub
commit 44ca83e95e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -27,7 +27,11 @@ export function BlackOpElem(props: IProps): React.ReactElement {
} }
const isCompleted = props.bladeburner.blackops[props.action.name] != null; const isCompleted = props.bladeburner.blackops[props.action.name] != null;
if (isCompleted) { if (isCompleted) {
return <h2 style={{ display: "block" }}>{props.action.name} (COMPLETED)</h2>; return (
<Paper sx={{ my: 1, p: 1 }}>
<Typography>{props.action.name} (COMPLETED)</Typography>
</Paper>
);
} }
const isActive = const isActive =
@ -53,11 +57,11 @@ export function BlackOpElem(props: IProps): React.ReactElement {
<> <>
<CopyableText value={props.action.name} /> (IN PROGRESS - {formatNumber(computedActionTimeCurrent, 0)} /{" "} <CopyableText value={props.action.name} /> (IN PROGRESS - {formatNumber(computedActionTimeCurrent, 0)} /{" "}
{formatNumber(props.bladeburner.actionTimeToComplete, 0)}) {formatNumber(props.bladeburner.actionTimeToComplete, 0)})
<p style={{ display: "block" }}> <Typography>
{createProgressBarText({ {createProgressBarText({
progress: computedActionTimeCurrent / props.bladeburner.actionTimeToComplete, progress: computedActionTimeCurrent / props.bladeburner.actionTimeToComplete,
})} })}
</p> </Typography>
</> </>
</> </>
) : ( ) : (