mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
portal fixes
This commit is contained in:
@@ -119,18 +119,6 @@ const NAV_ITEMS: (NavItem & { i18nKey: string })[] = [
|
||||
i18nKey: "nav.endorsements",
|
||||
icon: IconRubberStamp,
|
||||
},
|
||||
{
|
||||
to: "/vessel-registrations",
|
||||
label: "Vessel Registration",
|
||||
i18nKey: "nav.vesselRegistrations",
|
||||
icon: IconAnchor,
|
||||
},
|
||||
{
|
||||
to: "/vessel-transfers",
|
||||
label: "Vessel Transfers",
|
||||
i18nKey: "nav.vesselTransfers",
|
||||
icon: IconShip,
|
||||
},
|
||||
{
|
||||
to: "/documents",
|
||||
label: "My Documents",
|
||||
@@ -168,15 +156,15 @@ const ALWAYS_VISIBLE = ["/notifications", "/profile", "/support"];
|
||||
|
||||
const NAV_ACCESS: Record<string, string[] | "*"> = {
|
||||
null: "*",
|
||||
individual: "*",
|
||||
cadet: [
|
||||
"/dashboard",
|
||||
"/seafarer-registry",
|
||||
"/seaman-book",
|
||||
"/certificates",
|
||||
"/endorsements",
|
||||
"/documents",
|
||||
],
|
||||
cadet: "*",
|
||||
// cadet: [
|
||||
// "/dashboard",
|
||||
// "/seafarer-registry",
|
||||
// "/seaman-book",
|
||||
// "/certificates",
|
||||
// "/endorsements",
|
||||
// "/documents",
|
||||
// ],
|
||||
registration: [
|
||||
"/vessel-registration-dashboard",
|
||||
"/vessel-registration",
|
||||
@@ -219,8 +207,6 @@ const PAGE_META: Record<string, { i18nKey: string }> = {
|
||||
"/seaman-book": { i18nKey: "nav.myApplication" },
|
||||
"/certificates": { i18nKey: "nav.certificates" },
|
||||
"/endorsements": { i18nKey: "nav.endorsements" },
|
||||
"/vessel-registrations": { i18nKey: "nav.vesselRegistrations" },
|
||||
"/vessel-transfers": { i18nKey: "nav.vesselTransfers" },
|
||||
"/documents": { i18nKey: "nav.documents" },
|
||||
"/notifications": { i18nKey: "nav.notifications" },
|
||||
"/profile": { i18nKey: "nav.profile" },
|
||||
|
||||
Reference in New Issue
Block a user