feat : add arrow opt out options

This commit is contained in:
GuillaumeSD
2024-02-24 18:20:48 +01:00
parent 035591208f
commit 7b328d3159
16 changed files with 228 additions and 89 deletions

View File

@@ -40,6 +40,7 @@ export default function AnalyzePanel() {
engineDepth,
engineMultiPv
);
console.log(newGameEval);
setEval(newGameEval);
setEvaluationInProgress(false);

View File

@@ -1,7 +1,7 @@
import { Grid, Typography } from "@mui/material";
import { useGameDatabase } from "@/hooks/useGameDatabase";
import { useAtomValue } from "jotai";
import { gameAtom } from "../states";
import { gameAtom } from "../../states";
import PlayerInfo from "./playerInfo";
export default function GamePanel() {
@@ -12,7 +12,14 @@ export default function GamePanel() {
if (!hasGameInfo) {
return (
<Grid item container xs={12} justifyContent="center" alignItems="center">
<Grid
item
container
xs={12}
justifyContent="center"
alignItems="center"
marginY={1}
>
<Typography variant="h6">No game loaded</Typography>
</Grid>
);

View File

@@ -1,7 +1,7 @@
import { useGameDatabase } from "@/hooks/useGameDatabase";
import { Grid, Typography } from "@mui/material";
import { useAtomValue } from "jotai";
import { gameAtom } from "../states";
import { gameAtom } from "../../states";
interface Props {
color: "white" | "black";

View File

@@ -54,7 +54,7 @@ export default function LoadGame() {
<LoadGameButton
label={isGameLoaded ? "Load another game" : "Load game"}
setGame={async (game) => {
await router.push("");
await router.push("/");
resetAndSetGamePgn(game.pgn());
}}
/>