feat : add sentry

This commit is contained in:
GuillaumeSD
2024-12-29 17:24:21 +01:00
parent d5a1a03ffd
commit 011a1c21bf
8 changed files with 2688 additions and 65 deletions

View File

@@ -15,6 +15,7 @@ import {
Typography,
Grid2 as Grid,
} from "@mui/material";
import { setContext as setSentryContext } from "@sentry/react";
import { Chess } from "chess.js";
import { useState } from "react";
import GamePgnInput from "./gamePgnInput";
@@ -43,6 +44,7 @@ export default function NewGameDialog({ open, onClose, setGame }: Props) {
try {
const gameToAdd = getGameFromPgn(pgn);
setSentryContext("loadedGame", { pgn });
if (setGame) {
setGame(gameToAdd);