portal fixes

This commit is contained in:
Estifo77
2026-07-29 12:49:09 +03:00
parent 0c3d817ee1
commit 4a6f2954b5

View File

@@ -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" },