Create Profile Hooks to fetch current user
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
import AuthService from '../hooks/AuthenticationHooks';
|
||||
import { redirectIfNotLoggedIn } from '../hooks/AuthenticationHooks';
|
||||
|
||||
function RequireAuth({ children }: { children: JSX.Element }): JSX.Element {
|
||||
const { redirectIfNotLoggedIn } = AuthService;
|
||||
redirectIfNotLoggedIn();
|
||||
|
||||
return children;
|
||||
|
||||
Reference in New Issue
Block a user