fixed eslint warnings

This commit is contained in:
2022-03-13 18:08:33 -07:00
parent b86d51d4c1
commit 353472b7a1
5 changed files with 39 additions and 24 deletions
+7 -2
View File
@@ -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;