Skip to content

Commit 3241ab7

Browse files
committed
feat: Add hidden class to MobileNav conditional render
1 parent 391f4c6 commit 3241ab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/MobileNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const MobileNav = () => {
3737
</button>
3838
<div
3939
className={`fixed left-0 top-0 z-10 h-full w-full transform bg-white opacity-95 duration-300 ease-in-out dark:bg-gray-950 dark:opacity-[0.98] ${
40-
navShow ? 'translate-x-0' : 'translate-x-full'
40+
navShow ? 'translate-x-0' : 'hidden translate-x-full'
4141
}`}
4242
>
4343
<div className="flex justify-end">

0 commit comments

Comments
 (0)