fixed type errors
This commit is contained in:
@@ -7,10 +7,10 @@ type AlertHitProviderTypeProps = {
|
||||
};
|
||||
|
||||
export const AlertHitProvider = ({ children }: AlertHitProviderTypeProps) => {
|
||||
const [state, disptach] = useReducer(reducer, initalState);
|
||||
const [state, dispatch] = useReducer(reducer, initalState);
|
||||
|
||||
return (
|
||||
<AlertHitContext.Provider value={{ state, disptach }}>
|
||||
<AlertHitContext.Provider value={{ state, dispatch }}>
|
||||
{children}
|
||||
</AlertHitContext.Provider>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user