Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue #439 is solved #451

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading