Internal refactoring of Router (#241)

This commit is contained in:
David Walker
2022-12-04 00:14:06 -08:00
committed by GitHub
parent 897a1fbc8e
commit 8d793ea271
35 changed files with 292 additions and 383 deletions
+2 -1
View File
@@ -32,6 +32,7 @@ import { numeralWrapper } from "../numeralFormat";
import { ConfirmationModal } from "./ConfirmationModal";
import { pushImportResult } from "../../Electron";
import { Router } from "../GameRoot";
import { Page } from "../Router";
const useStyles = makeStyles((theme: Theme) =>
createStyles({
@@ -136,7 +137,7 @@ export function ImportSaveRoot(props: IProps): JSX.Element {
}, []);
useEffect(() => {
if (headback) Router.toTerminal();
if (headback) Router.toPage(Page.Terminal);
}, [headback]);
useEffect(() => {