feat: implement logout functionality in admin navbar and update sidebar links
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { NavLink, useLocation } from 'react-router'
|
||||
import { Link, useLocation } from 'react-router'
|
||||
import { twMerge } from 'tailwind-merge'
|
||||
|
||||
import { MENU } from './menu'
|
||||
@@ -15,7 +15,7 @@ export const Sidebar = () => {
|
||||
>
|
||||
<div className="px-5 pb-4 text-[#4C5CA0]/50 uppercase">{group}</div>
|
||||
{items.map(({ title, url, icon: Icon }) => (
|
||||
<NavLink
|
||||
<Link
|
||||
to={url}
|
||||
key={`${group}-${title}`}
|
||||
className={twMerge(
|
||||
@@ -37,7 +37,7 @@ export const Sidebar = () => {
|
||||
>
|
||||
{title}
|
||||
</span>
|
||||
</NavLink>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user