Refactor sound context and update sound settings functionality; remove console logs and improve sound file handling

This commit is contained in:
2025-10-01 15:21:07 +01:00
parent 1b7b2eec37
commit 68e944a6a2
11 changed files with 100 additions and 53 deletions

View File

@@ -1,9 +1,9 @@
import { createContext, useContext, type Dispatch } from "react";
import type { SoundPayload, SoundState } from "../types/types";
import type { SoundAction, SoundState } from "../types/types";
type SoundContextType = {
state: SoundState;
dispatch: Dispatch<SoundPayload>;
dispatch: Dispatch<SoundAction>;
};
export const SoundContext = createContext<SoundContextType | undefined>(