Refactor sound context and update sound settings functionality; remove console logs and improve sound file handling
This commit is contained in:
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user