Skip to content

Commit

Permalink
✨ add home redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
wook-hyung committed Dec 17, 2023
1 parent d278c9e commit d9e2ac0
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions app/(route)/(index)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import { UserContextProvider } from '@/app/_components/providers/UserProvider'
import BottomNavigation from '@/app/_components/shared/bottom-navigation'
import Header from '@/app/_components/shared/header'

export default function Layout({ children }: { children: React.ReactNode }) {
return (
<main className='h-full bg-home-background bg-cover bg-center bg-no-repeat'>
<Header>
<div />
<Header.AlarmIcon />
</Header>
{children}
<BottomNavigation selected='home' />
</main>
<UserContextProvider>
<main className='h-full bg-home-background bg-cover bg-center bg-no-repeat'>
<Header>
<div />
<Header.AlarmIcon />
</Header>
{children}
<BottomNavigation selected='home' />
</main>
</UserContextProvider>
)
}

0 comments on commit d9e2ac0

Please sign in to comment.