mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
UI: Correct behavior of "back" button on faction augs page
Plus router refactoring
This commit is contained in:
committed by
GitHub
parent
9a0a843ffc
commit
1af01401d9
@@ -1,6 +1,7 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import { Modal } from "../../ui/React/Modal";
|
||||
import { Router } from "../../ui/GameRoot";
|
||||
import { Page } from "../../ui/Router";
|
||||
import { EventEmitter } from "../../utils/EventEmitter";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import Button from "@mui/material/Button";
|
||||
@@ -10,7 +11,7 @@ export const BitFlumeEvent = new EventEmitter<[]>();
|
||||
export function BitFlumeModal(): React.ReactElement {
|
||||
const [open, setOpen] = useState(false);
|
||||
function flume(): void {
|
||||
Router.toBitVerse(true, false);
|
||||
Router.toPage(Page.BitVerse, { flume: true, quick: false });
|
||||
setOpen(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user