refacto : classification panel

This commit is contained in:
GuillaumeSD
2024-04-06 02:36:29 +02:00
parent 7a6bce6b24
commit 5eb1c3c7f5
7 changed files with 37 additions and 23 deletions

View File

@@ -1,6 +1,5 @@
import { useChessActions } from "@/hooks/useChessActions";
import Board from "@/sections/analysis/board";
import MovesClassificationsRecap from "@/sections/analysis/reviewPanelBody/movesClassificationsRecap";
import ReviewPanelBody from "@/sections/analysis/reviewPanelBody";
import ReviewPanelHeader from "@/sections/analysis/reviewPanelHeader";
import ReviewPanelToolBar from "@/sections/analysis/reviewPanelToolbar";
@@ -15,7 +14,7 @@ import { Chess } from "chess.js";
import { useSetAtom } from "jotai";
import { useRouter } from "next/router";
import { useEffect } from "react";
import MovesPanel from "@/sections/analysis/reviewPanelBody/movesPanel";
import ClassificationPanel from "@/sections/analysis/reviewPanelBody/classificationPanel";
export default function GameReport() {
const theme = useTheme();
@@ -73,21 +72,7 @@ export default function GameReport() {
<ReviewPanelBody />
<Divider sx={{ marginX: "5%" }} />
<Grid
container
item
justifyContent="center"
alignItems="start"
height="100%"
minHeight={{ lg: "50px", xs: undefined }}
sx={{ overflow: "hidden" }}
>
<MovesPanel />
<MovesClassificationsRecap />
</Grid>
<ClassificationPanel />
<Divider sx={{ marginX: "5%" }} />