This commit is contained in:
KS Jannette
2026-03-29 01:48:55 -04:00
parent c0aaaedaf1
commit 1418e7f97c
3 changed files with 35 additions and 17 deletions

View File

@@ -33,13 +33,15 @@ export const AuthProvider = ({ children }) => {
const value = {
user: state.name,
user: state.tier
authUser: state.name,
authUserTier: state.tier,
addAuthUser,
logoutAuthUser
};
return <AuthContext.Provider value={value}>{children}</AuthContext.Provider>;
};
const useAuthContext = () => {
const useAuth = () => {
const context = useContext(ShopContext);
if (context === undefined) {
@@ -49,4 +51,4 @@ const useAuthContext = () => {
return context;
};
export default useAuthContext;
export default useAuth;