Skip to content

Commit

Permalink
Merge branch 'piyushgarg-dev:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
SwastikKasera authored Oct 19, 2023
2 parents 07e0c0f + 8e9e016 commit cc54c51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
31 changes: 2 additions & 29 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div>
<Head>
<title>Review App</title>
</Head>
<main className="flex h-screen w-screen items-center justify-center">
<div className="space-y-6 text-center">
<h1 className="text-4xl">
Hello {user?.firstName} {user?.lastName} 👋🏻
</h1>
<Button onClick={() => router.push('/dashboard')}>
Go to Dashboard
</Button>
</div>
</main>
</div>
)
}

export default HomePage
export default LandingPage
2 changes: 1 addition & 1 deletion pages/templates/ebraj/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down

0 comments on commit cc54c51

Please sign in to comment.