diff --git a/pages/index.tsx b/pages/index.tsx index 334c56de..1b33848b 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -6,33 +6,6 @@ import { useEffect } from 'react' import { Button } from '@/components/ui/button' import { useCurrentUser } from '@/hooks/query/user' -const HomePage: NextPage = () => { - const { user } = useCurrentUser() - const router = useRouter() +import LandingPage from './templates/ebraj/index' - useEffect(() => { - if (!user) { - router.replace('/signin') - } - }, [router, user]) - - return ( -
- - Review App - -
-
-

- Hello {user?.firstName} {user?.lastName} 👋🏻 -

- -
-
-
- ) -} - -export default HomePage +export default LandingPage diff --git a/pages/templates/ebraj/index.tsx b/pages/templates/ebraj/index.tsx index 273bfc99..bb33480b 100644 --- a/pages/templates/ebraj/index.tsx +++ b/pages/templates/ebraj/index.tsx @@ -63,7 +63,7 @@ export const GridContainer = ({ children, className }: GridContainerProps) => { * Navbar Section... */ const allNavLinks = [ - { title: 'Home', url: '/templates/ebraj/' }, + { title: 'Home', url: '/' }, { title: 'About', url: '/templates/ebraj/about' }, { title: 'Blogs', url: '/templates/ebraj/blogs' }, { title: 'Contact', url: '/templates/ebraj/contact' },