fixed type errors

This commit is contained in:
2025-09-16 14:20:38 +01:00
parent c506c395e6
commit b98e3ed85d
21 changed files with 161 additions and 130 deletions

View File

@@ -1,10 +1,10 @@
import { createContext, useContext } from "react";
import type { AlertState, AlertPayload, ActionType } from "../types/types";
import type { AlertState, AlertPayload } from "../types/types";
type AlertHitContextValueType = {
state: AlertState;
action: AlertPayload;
disptach: (action: ActionType) => AlertState;
action?: AlertPayload;
dispatch: React.Dispatch<AlertPayload>;
};
export const AlertHitContext = createContext<