fix: Property 'service' is missing in type '{}' but required in type 'AuthContextProps'
This commit is contained in:
parent
c82fee6162
commit
dd769e4d04
@ -11,7 +11,7 @@ export interface AuthContextProps {
|
||||
service: BaseResult<any, any>;
|
||||
}
|
||||
|
||||
export const AuthContext = createContext<AuthContextProps>({});
|
||||
export const AuthContext = createContext<AuthContextProps>(null);
|
||||
|
||||
export const useCurrentUser = () => {
|
||||
const { currentUser } = useContext(AuthContext);
|
||||
|
Loading…
Reference in New Issue
Block a user