refactor: rename to AuthContext

This commit is contained in:
karishmas6
2024-09-25 12:07:24 +05:30
parent 23e55deec7
commit 8f52bb28e1

View File

@@ -19,7 +19,7 @@ const initialState = {
user: null, user: null,
}; };
const Context = createContext<{ const AuthContext = createContext<{
state: InitialStateType; state: InitialStateType;
dispatch: any; dispatch: any;
}>({ }>({
@@ -96,8 +96,8 @@ const Provider = ({ children }: ProviderProps) => {
}, []); }, []);
return ( return (
<Context.Provider value={{ state, dispatch }}>{children}</Context.Provider> <AuthContext.Provider value={{ state, dispatch }}>{children}</AuthContext.Provider>
); );
}; };
export { Context, Provider }; export { AuthContext, Provider };