feat : new sounds

This commit is contained in:
GuillaumeSD
2025-05-30 00:30:19 +02:00
parent 2f38aca7b5
commit 134cc714de
16 changed files with 6 additions and 32 deletions

View File

@@ -7,7 +7,6 @@ import {
import { useAtom, useAtomValue } from "jotai";
import { gameAtom, isGameInProgressAtom } from "./states";
import { useEffect } from "react";
import { playGameEndSound } from "@/lib/sounds";
import UndoMoveButton from "./undoMoveButton";
export default function GameInProgress() {
@@ -19,7 +18,6 @@ export default function GameInProgress() {
}, [game, setIsGameInProgress]);
const handleResign = () => {
playGameEndSound();
setIsGameInProgress(false);
};

View File

@@ -28,7 +28,6 @@ import {
enginePlayNameAtom,
} from "../states";
import { useChessActions } from "@/hooks/useChessActions";
import { playGameStartSound } from "@/lib/sounds";
import { logAnalyticsEvent } from "@/lib/firebase";
import { useEffect, useState } from "react";
import { isEngineSupported } from "@/lib/engine/shared";
@@ -93,7 +92,6 @@ export default function GameSettingsDialog({ open, onClose }: Props) {
setIsGameInProgress(true);
handleClose();
playGameStartSound();
logAnalyticsEvent("play_game", {
engine: engineName,