Skip to content

Commit

Permalink
issue #439 is solved
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemraj-7 committed Nov 2, 2024
1 parent e5d522e commit 21b7976
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 @@ -146,7 +146,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 @@ -210,20 +209,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 21b7976

Please sign in to comment.