mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-19 22:14:07 +01:00
Use navigate in nav instead of href
This commit is contained in:
parent
fcff22e64d
commit
dc4c10c682
@ -39,12 +39,12 @@ export function NavBar() {
|
|||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
className="mt-3 z-[10] p-2 shadow menu menu-sm dropdown-content bg-base-100 rounded-box w-52">
|
className="mt-3 z-[10] p-2 shadow menu menu-sm dropdown-content bg-base-100 rounded-box w-52">
|
||||||
<li>
|
<li>
|
||||||
<a href={settings.Profile} className="justify-between">
|
<a onClick={() => Navigate(settings.Profile)} className="justify-between">
|
||||||
Profile
|
Profile
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href={settings.Account}>Settings</a>
|
<a onClick={() => Navigate(settings.Account)}>Settings</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a onClick={logout}>Logout</a>
|
<a onClick={logout}>Logout</a>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user