mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 05:33:54 +01:00
UI: Change buttons in Tutorial (#1251)
This commit is contained in:
parent
8289b23cff
commit
309cd55085
@ -2,10 +2,7 @@ import React, { useEffect } from "react";
|
||||
|
||||
import Paper from "@mui/material/Paper";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import Button from "@mui/material/Button";
|
||||
import ArrowForwardIos from "@mui/icons-material/ArrowForwardIos";
|
||||
import ArrowBackIos from "@mui/icons-material/ArrowBackIos";
|
||||
import { ITutorialEvents } from "./ITutorialEvents";
|
||||
import { CopyableText } from "../React/CopyableText";
|
||||
|
||||
@ -558,17 +555,18 @@ export function InteractiveTutorialRoot(): React.ReactElement {
|
||||
<>
|
||||
<Paper square sx={{ maxWidth: "70vw", p: 2 }}>
|
||||
{content.content}
|
||||
<br />
|
||||
{step !== iTutorialSteps.DocumentationPageInfo && (
|
||||
<>
|
||||
{step !== iTutorialSteps.Start && (
|
||||
<IconButton onClick={iTutorialPrevStep} aria-label="previous">
|
||||
<ArrowBackIos />
|
||||
</IconButton>
|
||||
<Button onClick={iTutorialPrevStep} aria-label="previous" style={{ marginRight: "1em" }}>
|
||||
Previous
|
||||
</Button>
|
||||
)}
|
||||
{(content.canNext || ITutorial.stepIsDone[step]) && (
|
||||
<IconButton onClick={iTutorialNextStep} aria-label="next">
|
||||
<ArrowForwardIos />
|
||||
</IconButton>
|
||||
<Button onClick={iTutorialNextStep} aria-label="next">
|
||||
Next
|
||||
</Button>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user