feat : new sounds
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user