mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
Refactor BladeburnerRoot to use display: grid
This commit is contained in:
parent
4195eb759b
commit
01d6edb2a1
@ -4,7 +4,6 @@ import { Console } from "./Console";
|
|||||||
import { AllPages } from "./AllPages";
|
import { AllPages } from "./AllPages";
|
||||||
|
|
||||||
import { use } from "../../ui/Context";
|
import { use } from "../../ui/Context";
|
||||||
import Grid from "@mui/material/Grid";
|
|
||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
|
|
||||||
export function BladeburnerRoot(): React.ReactElement {
|
export function BladeburnerRoot(): React.ReactElement {
|
||||||
@ -24,14 +23,10 @@ export function BladeburnerRoot(): React.ReactElement {
|
|||||||
if (bladeburner === null) return <></>;
|
if (bladeburner === null) return <></>;
|
||||||
return (
|
return (
|
||||||
<Box display="flex" flexDirection="column">
|
<Box display="flex" flexDirection="column">
|
||||||
<Grid container>
|
<Box sx={{ display: "grid", gridTemplateColumns: "4fr 8fr", p: 1 }}>
|
||||||
<Grid item xs={6}>
|
<Stats bladeburner={bladeburner} player={player} router={router} />
|
||||||
<Stats bladeburner={bladeburner} player={player} router={router} />
|
<Console bladeburner={bladeburner} player={player} />
|
||||||
</Grid>
|
</Box>
|
||||||
<Grid item xs={6}>
|
|
||||||
<Console bladeburner={bladeburner} player={player} />
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<AllPages bladeburner={bladeburner} player={player} />
|
<AllPages bladeburner={bladeburner} player={player} />
|
||||||
</Box>
|
</Box>
|
||||||
|
Loading…
Reference in New Issue
Block a user