Skip to content

Commit

Permalink
Merge pull request #451 from Hemraj-7/mode-menu
Browse files Browse the repository at this point in the history
issue #439 is solved
  • Loading branch information
RamakrushnaBiswal authored Nov 4, 2024
2 parents 3a4fa96 + 21b7976 commit 92d0389
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/Shared/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ const Navbar = () => {

{/* Mobile Menu Button */}
<div className="flex md:hidden space-x-6">
<ThemeToggle />
<button
onClick={toggleMenu}
className={`${buttonTextClass} focus:outline-none`}
Expand Down Expand Up @@ -211,20 +210,21 @@ const Navbar = () => {
{token ? (
<button
className={`block w-full text-left px-4 py-3 rounded-md text-base font-semibold transition duration-300
${mobileMenuBaseTextColorClass} hover:bg-amber-300 hover:text-black`}
${mobileMenuBaseTextColorClass} hover:bg-amber-300 hover:text-black dark:text-white`}
onClick={() => setIsModalOpen(true)} // Trigger modal on logout button click
>
Log Out
</button>
) : (
<button
className={`block w-full text-left px-4 py-3 rounded-md text-base font-semibold transition duration-300
${mobileMenuBaseTextColorClass} hover:bg-amber-300 hover:text-black`}
${mobileMenuBaseTextColorClass} hover:bg-amber-300 hover:text-black dark:text-white`}
onClick={() => navigate('/login')}
>
Log In
</button>
)}
<ThemeToggle />
</div>
</div>
)}
Expand Down

0 comments on commit 92d0389

Please sign in to comment.