Update Navbar component to simplify the link structure by removing conditional routing for authenticated users. This change enhances navigation consistency by directing all users to the home page.
This commit is contained in:
parent
212ac70b5d
commit
77bc00999d
@ -84,7 +84,7 @@ export function Navbar() {
|
|||||||
whileTap={{ scale: 0.95 }}
|
whileTap={{ scale: 0.95 }}
|
||||||
>
|
>
|
||||||
<Link
|
<Link
|
||||||
href={isAuthenticated && !isAdmin ? "/user/dashboard" : "/"}
|
href="/"
|
||||||
className="flex items-center gap-1.5 sm:gap-2"
|
className="flex items-center gap-1.5 sm:gap-2"
|
||||||
>
|
>
|
||||||
<div className="bg-gradient-to-r from-rose-500 to-pink-600 p-1.5 sm:p-2 rounded-lg sm:rounded-xl">
|
<div className="bg-gradient-to-r from-rose-500 to-pink-600 p-1.5 sm:p-2 rounded-lg sm:rounded-xl">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user