fix: export AuthContext to allow import in useAuth hook
Export AuthContext from AuthContext.tsx to make it available for import in hooks/useAuth.ts. This resolves the TypeScript error "Module declares 'AuthContext' locally, but it is not exported." 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
8881014e36
commit
b6a514b547
|
|
@ -20,7 +20,7 @@ interface AuthContextType {
|
||||||
refreshUser: () => Promise<void>;
|
refreshUser: () => Promise<void>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const AuthContext = createContext<AuthContextType | undefined>(undefined);
|
export const AuthContext = createContext<AuthContextType | undefined>(undefined);
|
||||||
|
|
||||||
export const useAuth = () => {
|
export const useAuth = () => {
|
||||||
const context = useContext(AuthContext);
|
const context = useContext(AuthContext);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user