fixed type errors
This commit is contained in:
@@ -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<
|
||||
|
||||
Reference in New Issue
Block a user