Skip to content

Commit

Permalink
Merge pull request #6 from jackschedel/working-branch
Browse files Browse the repository at this point in the history
re-added menu close button for mobile (since menu toggle button will …
  • Loading branch information
jackschedel authored May 8, 2023
2 parents 84462e0 + 1b982b5 commit 7b852a7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ const Menu = () => {
</nav>
</div>
</div>
<div
id='menu-close'
className={`${
hideSideMenu ? 'hidden' : ''
} md:hidden absolute z-[999] right-0 translate-x-full top-10 bg-gray-900 p-2 cursor-pointer hover:bg-black text-white`}
onClick={() => {
setHideSideMenu(true);
}}
>
<CrossIcon2 />
</div>
</div>
<div
id='menu-backdrop'
Expand Down

0 comments on commit 7b852a7

Please sign in to comment.