mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
fix completed black op being invisible.
This commit is contained in:
parent
63e467986e
commit
cc056ceef4
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>
|
||||||
</>
|
</>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
|
Loading…
Reference in New Issue
Block a user