mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-26 16:07:33 +01:00
convert milestones to mui
This commit is contained in:
parent
61dd393bb5
commit
64c7831c81
@ -3,6 +3,9 @@ import { Milestones } from "../Milestones";
|
||||
import { Milestone } from "../Milestone";
|
||||
import * as React from "react";
|
||||
|
||||
import Typography from "@mui/material/Typography";
|
||||
import Box from "@mui/material/Box";
|
||||
|
||||
interface IProps {
|
||||
player: IPlayer;
|
||||
}
|
||||
@ -21,25 +24,25 @@ export function MilestonesRoot(props: IProps): JSX.Element {
|
||||
const milestones = Milestones.map((milestone: Milestone, i: number) => {
|
||||
if (i <= n + 1) {
|
||||
return (
|
||||
<ul key={i}>
|
||||
<p>
|
||||
[{milestone.fulfilled(props.player) ? "x" : " "}] {milestone.title}
|
||||
</p>
|
||||
</ul>
|
||||
<Typography key={i}>
|
||||
[{milestone.fulfilled(props.player) ? "x" : " "}] {milestone.title}
|
||||
</Typography>
|
||||
);
|
||||
}
|
||||
});
|
||||
return (
|
||||
<div className="milestones-container">
|
||||
<h1>Milestones</h1>
|
||||
<p>
|
||||
Milestones don't reward you for completing them. They are here to guide you if you're lost. They will reset when
|
||||
you install Augmentations.
|
||||
</p>
|
||||
<br />
|
||||
<>
|
||||
<Typography variant="h4">Milestones</Typography>
|
||||
<Box mx={2}>
|
||||
<Typography>
|
||||
Milestones don't reward you for completing them. They are here to guide you if you're lost. They will reset
|
||||
when you install Augmentations.
|
||||
</Typography>
|
||||
<br />
|
||||
|
||||
<h2>Completing fl1ght.exe</h2>
|
||||
<li>{milestones}</li>
|
||||
</div>
|
||||
<Typography>Completing fl1ght.exe</Typography>
|
||||
{milestones}
|
||||
</Box>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user