feat: update menus for koorkurator
This commit is contained in:
parent
04c5ffc77b
commit
f20a26cf07
|
|
@ -176,7 +176,7 @@ const Navbar = () => {
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center space-x-2">
|
<div className="flex items-center space-x-2">
|
||||||
<Link href="/in/auth" className="px-4 py-1 bg-[#bb3523] text-white font-semibold rounded-md hover:bg-red-700">
|
<Link href="/auth" className="px-4 py-1 bg-[#bb3523] text-white font-semibold rounded-md hover:bg-red-700">
|
||||||
Masuk
|
Masuk
|
||||||
</Link>
|
</Link>
|
||||||
<button className="px-4 py-1 border border-[#bb3523] text-[#bb3523] font-semibold rounded-md hover:bg-red-600 hover:text-white">Daftar</button>
|
<button className="px-4 py-1 border border-[#bb3523] text-[#bb3523] font-semibold rounded-md hover:bg-red-600 hover:text-white">Daftar</button>
|
||||||
|
|
@ -270,7 +270,7 @@ const Navbar = () => {
|
||||||
<input type="text" placeholder="Pencarian" className="border rounded-full text-sm text-gray-600" />
|
<input type="text" placeholder="Pencarian" className="border rounded-full text-sm text-gray-600" />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col space-y-2">
|
<div className="flex flex-col space-y-2">
|
||||||
<Link href="/in/auth" className="w-full px-4 py-1 bg-[#bb3523] text-white font-semibold rounded-md hover:bg-red-700 md:flex">
|
<Link href="/auth" className="w-full px-4 py-1 bg-[#bb3523] text-white font-semibold rounded-md hover:bg-red-700 md:flex">
|
||||||
Masuk
|
Masuk
|
||||||
</Link>
|
</Link>
|
||||||
<Link href="#" className="w-full px-4 py-1 border border-[#bb3523] text-[#bb3523] font-semibold rounded-md hover:bg-[#bb3523] md:flex hover:text-white">
|
<Link href="#" className="w-full px-4 py-1 border border-[#bb3523] text-[#bb3523] font-semibold rounded-md hover:bg-[#bb3523] md:flex hover:text-white">
|
||||||
|
|
|
||||||
158
lib/menus.ts
158
lib/menus.ts
|
|
@ -1519,6 +1519,164 @@ export function getMenuList(pathname: string, t: any): Group[] {
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
} else if (Number(roleId) == 11) {
|
||||||
|
menusSelected = [
|
||||||
|
{
|
||||||
|
groupLabel: t("apps"),
|
||||||
|
id: "dashboard",
|
||||||
|
menus: [
|
||||||
|
{
|
||||||
|
id: "dashboard",
|
||||||
|
href: "/dashboard",
|
||||||
|
label: t("dashboard"),
|
||||||
|
active: pathname.includes("/dashboard"),
|
||||||
|
icon: "material-symbols:dashboard",
|
||||||
|
submenus: [],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
groupLabel: "",
|
||||||
|
id: "content-production",
|
||||||
|
menus: [
|
||||||
|
{
|
||||||
|
id: "content-production",
|
||||||
|
href: "/content-production",
|
||||||
|
label: t("content-production"),
|
||||||
|
active: pathname.includes("/content-production"),
|
||||||
|
icon: "fluent:content-view-gallery-16-regular",
|
||||||
|
submenus: [],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
groupLabel: "",
|
||||||
|
id: "pattern-relation",
|
||||||
|
menus: [
|
||||||
|
{
|
||||||
|
id: "pattern-relation",
|
||||||
|
href: "/pattern-relation",
|
||||||
|
label: t("pattern-relation"),
|
||||||
|
active: pathname.includes("/pattern-relation"),
|
||||||
|
icon: "oui:app-index-pattern",
|
||||||
|
submenus: [],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
groupLabel: "",
|
||||||
|
id: "agenda-setting",
|
||||||
|
menus: [
|
||||||
|
{
|
||||||
|
id: "agenda-setting",
|
||||||
|
href: "/agenda-setting",
|
||||||
|
label: t("agenda-setting"),
|
||||||
|
active: pathname.includes("/agenda-setting"),
|
||||||
|
icon: "iconoir:journal-page",
|
||||||
|
submenus: [],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
groupLabel: "",
|
||||||
|
id: "task-plan",
|
||||||
|
menus: [
|
||||||
|
{
|
||||||
|
id: "task-plan",
|
||||||
|
href: "/task-plan",
|
||||||
|
label: t("task-plan"),
|
||||||
|
active: pathname.includes("/task-plan"),
|
||||||
|
icon: "pajamas:planning",
|
||||||
|
submenus: [
|
||||||
|
{
|
||||||
|
href: "/task-plan/mediahub",
|
||||||
|
label: "mediaHub",
|
||||||
|
active: pathname === "/task-plan/mediahub",
|
||||||
|
icon: "heroicons:arrow-trending-up",
|
||||||
|
children: [],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
href: "/task-plan/medsos-mediahub",
|
||||||
|
label: "medsos mediahub",
|
||||||
|
active: pathname === "/task-plan/medsos-mediahub",
|
||||||
|
icon: "heroicons:shopping-cart",
|
||||||
|
children: [],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
groupLabel: "",
|
||||||
|
id: "curatedcontent",
|
||||||
|
menus: [
|
||||||
|
{
|
||||||
|
id: "curatedcontent",
|
||||||
|
href: "/curated-content",
|
||||||
|
label: t("curated-content"),
|
||||||
|
active: pathname.includes("/curated-content"),
|
||||||
|
icon: "pixelarticons:calendar-text",
|
||||||
|
submenus: [],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
groupLabel: "",
|
||||||
|
id: "media-tracking",
|
||||||
|
menus: [
|
||||||
|
{
|
||||||
|
id: "media-tracking",
|
||||||
|
href: "/media-tracking",
|
||||||
|
label: t("media-tracking"),
|
||||||
|
active: pathname.includes("/media-tracking"),
|
||||||
|
icon: "material-symbols:map-search-outline",
|
||||||
|
submenus: [],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
groupLabel: "",
|
||||||
|
id: "communication",
|
||||||
|
menus: [
|
||||||
|
{
|
||||||
|
id: "communication",
|
||||||
|
href: "/communication",
|
||||||
|
label: t("communication"),
|
||||||
|
active: pathname.includes("/communication"),
|
||||||
|
icon: "token:chat",
|
||||||
|
submenus: [],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
groupLabel: "",
|
||||||
|
id: "contest",
|
||||||
|
menus: [
|
||||||
|
{
|
||||||
|
id: "contest",
|
||||||
|
href: "/contest",
|
||||||
|
label: t("contest"),
|
||||||
|
active: pathname.includes("/contest"),
|
||||||
|
icon: "ic:outline-emoji-events",
|
||||||
|
submenus: [],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
groupLabel: "",
|
||||||
|
id: "feedback",
|
||||||
|
menus: [
|
||||||
|
{
|
||||||
|
id: "feedback",
|
||||||
|
href: "/feedback",
|
||||||
|
label: t("feedback"),
|
||||||
|
active: pathname.includes("/feedback"),
|
||||||
|
icon: "mdi:feedback-outline",
|
||||||
|
submenus: [],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
return menusSelected;
|
return menusSelected;
|
||||||
|
|
|
||||||
|
|
@ -147,6 +147,10 @@
|
||||||
"account-report": "Account Report",
|
"account-report": "Account Report",
|
||||||
"settings": "Settings",
|
"settings": "Settings",
|
||||||
"feedback": "Feedback",
|
"feedback": "Feedback",
|
||||||
|
"content-production": "Content Production",
|
||||||
|
"pattern-relation": "Pattern & Relation",
|
||||||
|
"task-plan": "Task Plan",
|
||||||
|
"media-tracking": "Media Tracking",
|
||||||
"social-media": "Social media",
|
"social-media": "Social media",
|
||||||
"analytics": "Analytics",
|
"analytics": "Analytics",
|
||||||
"banking": "Banking",
|
"banking": "Banking",
|
||||||
|
|
|
||||||
|
|
@ -147,6 +147,10 @@
|
||||||
"account-report": "Account Report",
|
"account-report": "Account Report",
|
||||||
"settings": "Settings",
|
"settings": "Settings",
|
||||||
"feedback": "Feedback",
|
"feedback": "Feedback",
|
||||||
|
"content-production": "Produksi Konten",
|
||||||
|
"pattern-relation": "Pola & Relasi",
|
||||||
|
"task-plan": "Rencana Penugasan",
|
||||||
|
"media-tracking": "Media Tracking",
|
||||||
"social-media": "Social media",
|
"social-media": "Social media",
|
||||||
"analytics": "Analytics",
|
"analytics": "Analytics",
|
||||||
"banking": "Banking",
|
"banking": "Banking",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue