diff --git a/apps/app/layouts/AppLayout.tsx b/apps/app/layouts/AppLayout.tsx index dbdddf0a7..e5135a605 100644 --- a/apps/app/layouts/AppLayout.tsx +++ b/apps/app/layouts/AppLayout.tsx @@ -1,9 +1,4 @@ -// react -import React, { useEffect, useState } from "react"; -// next -import { useRouter } from "next/router"; -// hooks -import useUser from "lib/hooks/useUser"; +import React, { useState } from "react"; // layouts import Container from "layouts/Container"; import Sidebar from "layouts/Navbar/Sidebar"; @@ -15,14 +10,6 @@ import type { Props } from "./types"; const AppLayout: React.FC = ({ meta, children, noPadding = false, bg = "primary" }) => { const [isOpen, setIsOpen] = useState(false); - const router = useRouter(); - - const { user, isUserLoading } = useUser(); - - useEffect(() => { - if (!isUserLoading && (!user || user === null)) router.push("/signin"); - }, [isUserLoading, user, router]); - return (