diff --git a/frontend/src/components/Auth/RequireGuest.tsx b/frontend/src/components/Auth/RequireGuest.tsx index 320d5e44c..9f79301d8 100644 --- a/frontend/src/components/Auth/RequireGuest.tsx +++ b/frontend/src/components/Auth/RequireGuest.tsx @@ -1,7 +1,7 @@ import { PropsWithChildren } from 'react'; import { useUser } from '../../hooks/useUser'; -import NotFoundView from '../../views/NotFoundView'; +import { Navigate } from 'react-router-dom'; interface RequireGuestProps {} @@ -12,7 +12,7 @@ function RequireGuest(props: PropsWithChildren) { return props.children; } - return ; + return ; } export default RequireGuest;