convert loginComponent to TS
This commit is contained in:
@@ -22,7 +22,9 @@ export interface User {
|
||||
export interface AuthContextType {
|
||||
user: User | null;
|
||||
update: () => void;
|
||||
login: (email: string, password: string) => Promise<{ status: number }>;
|
||||
}
|
||||
|
||||
|
||||
export const AuthContext = createContext<AuthContextType | null>(null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user