feat: add multiple admin dashboard layout components and update sidebar and navbar
This commit is contained in:
@@ -7,13 +7,11 @@ export const Sidebar = () => {
|
||||
return (
|
||||
<div className="flex min-h-[calc(100dvh-80px)] flex-col gap-y-10 overflow-y-auto bg-white p-5">
|
||||
{MENU.map(({ group, items }) => (
|
||||
<div className="flex flex-col">
|
||||
<div
|
||||
key={group}
|
||||
className="px-5 pb-4 text-[#4C5CA0]/50 uppercase"
|
||||
>
|
||||
{group}
|
||||
</div>
|
||||
<div
|
||||
className="flex flex-col"
|
||||
key={group}
|
||||
>
|
||||
<div className="px-5 pb-4 text-[#4C5CA0]/50 uppercase">{group}</div>
|
||||
{items.map(({ title, url, icon: Icon }) => (
|
||||
<NavLink
|
||||
to={url}
|
||||
@@ -36,7 +34,7 @@ export const Sidebar = () => {
|
||||
<span
|
||||
className={twMerge(
|
||||
isActive ? 'text-[#5363AB]' : 'text-[#273240]',
|
||||
'transition-all group-hover/menu:text-[#5363AB]',
|
||||
'text-base transition-all group-hover/menu:text-[#5363AB]',
|
||||
)}
|
||||
>
|
||||
{title}
|
||||
|
||||
Reference in New Issue
Block a user