From b2c557cbdf529d605bef0fcfbc6649896c74cbfd Mon Sep 17 00:00:00 2001 From: Prince Muel Date: Fri, 12 May 2023 02:47:41 +0100 Subject: [PATCH] chore: remove requeire auth component Signed-off-by: Prince Muel --- src/lib/middleware/require-auth.tsx | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 src/lib/middleware/require-auth.tsx diff --git a/src/lib/middleware/require-auth.tsx b/src/lib/middleware/require-auth.tsx deleted file mode 100644 index 0c836f9..0000000 --- a/src/lib/middleware/require-auth.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import { Navigate, Outlet, useLocation } from 'react-router-dom'; -import { useAuthState } from '../context'; - -interface Props {} - -const RequireAuth = (props: Props) => { - const session = useAuthState(); - const location = useLocation(); // // const loading = isFetching || isLoading; - - return session.token ? ( - - ) : ( - - ); -}; - -export { RequireAuth };