feat : add pretty san

This commit is contained in:
GuillaumeSD
2025-06-02 02:37:05 +02:00
parent f782b55b5a
commit d04c4d99df
8 changed files with 153 additions and 99 deletions

View File

@@ -1,5 +1,5 @@
import { MoveClassification } from "@/types/enums";
import { Grid2 as Grid, Typography } from "@mui/material";
import { Box, Grid2 as Grid, Typography } from "@mui/material";
import MoveItem from "./moveItem";
interface Props {
@@ -20,9 +20,13 @@ export default function MovesLine({ moves, moveNb }: Props) {
{moveNb}.
</Typography>
<MoveItem {...moves[0]} moveIdx={(moveNb - 1) * 2 + 1} />
<MoveItem {...moves[0]} moveIdx={(moveNb - 1) * 2 + 1} moveColor="w" />
<MoveItem {...moves[1]} moveIdx={(moveNb - 1) * 2 + 2} />
{moves[1] ? (
<MoveItem {...moves[1]} moveIdx={(moveNb - 1) * 2 + 2} moveColor="b" />
) : (
<Box width="5rem" />
)}
</Grid>
);
}