feat: update menus for koorkurator

This commit is contained in:
hanif salafi 2024-12-12 11:49:58 +07:00
parent 04c5ffc77b
commit f20a26cf07
4 changed files with 168 additions and 2 deletions

View File

@ -176,7 +176,7 @@ const Navbar = () => {
</span>
</div>
<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
</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>
@ -270,7 +270,7 @@ const Navbar = () => {
<input type="text" placeholder="Pencarian" className="border rounded-full text-sm text-gray-600" />
</div>
<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
</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">

View File

@ -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;

View File

@ -147,6 +147,10 @@
"account-report": "Account Report",
"settings": "Settings",
"feedback": "Feedback",
"content-production": "Content Production",
"pattern-relation": "Pattern & Relation",
"task-plan": "Task Plan",
"media-tracking": "Media Tracking",
"social-media": "Social media",
"analytics": "Analytics",
"banking": "Banking",

View File

@ -147,6 +147,10 @@
"account-report": "Account Report",
"settings": "Settings",
"feedback": "Feedback",
"content-production": "Produksi Konten",
"pattern-relation": "Pola & Relasi",
"task-plan": "Rencana Penugasan",
"media-tracking": "Media Tracking",
"social-media": "Social media",
"analytics": "Analytics",
"banking": "Banking",