Skip to content

Commit

Permalink
worked on nav
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Gordon committed Apr 13, 2024
1 parent a06ea4a commit 76c98cc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
10 changes: 7 additions & 3 deletions src/app/components/AuthPage/AuthPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ export default function AuthPage ({children} : {children: React.ReactNode}) {
}
}, [pathname]);
return (
<>{authenticated && (
<>{children}</>
)}</>
<div className="h-full">{
authenticated && (
<div className="h-full">
{children}
</div>
) }
</div>
)
}
14 changes: 8 additions & 6 deletions src/app/components/BottomNav/BottomNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,19 @@ const BottomNavbar = () => {
// redux
const dispatch = useDispatch();

const address = useSelector((state: RootState) => state.address.value);

return (
<>
<AnimatePresence initial={false}>
{showNav && (
{showNav && address && (
<motion.nav
layout
key={"nav"}
initial={{ opacity: 0, y: 100}}
animate={{ opacity: showNav ? 1 : 0, y: showNav ? 0 : 100}}
exit={{ opacity: 0, y: 100}}
transition={{ duration: 0.3, ease: 'easeInOut'}}
key={'nav'}
initial={{ opacity: 0, y: 100 }}
animate={{ opacity: showNav ? 1 : 0, y: showNav ? 0 : 100 }}
exit={{ opacity: 0, y: 100 }}
transition={{ duration: 0.3, ease: 'easeInOut' }}
className='sticky bottom-0 flex h-auto w-full justify-between bg-transparent bg-opacity-0 bg-gradient-to-br from-slate-50/10 p-4 px-8 pb-8 pt-4 backdrop-blur-xl '
>
{/* <Link href='/home'>
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default function RootLayout({
<WagmiProvider config={config!}>
<QueryClientProvider client={queryClient}>
<LayoutGroup>
<div className='h-[100vh] justify-center'>
<div style={{height: '100vh'}} className=' justify-center'>
<div
vaul-drawer-wrapper=''
className='relative h-full w-full justify-center overflow-hidden'
Expand Down

0 comments on commit 76c98cc

Please sign in to comment.