Archived
fixed eslint warnings
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
import { useContext } from "react";
|
||||
import AuthContext from "../context/AuthProvider";
|
||||
|
||||
const useAuth = () => {
|
||||
return useContext(AuthContext);
|
||||
interface loginInfo {
|
||||
username: string;
|
||||
isLoggedIn: boolean;
|
||||
}
|
||||
|
||||
const useAuth = () => {
|
||||
return useContext<loginInfo>(AuthContext);
|
||||
};
|
||||
|
||||
export default useAuth;
|
||||
Reference in New Issue
Block a user