diff --git a/frontend/src/layouts/AdminLayout/AdminNavBar.tsx b/frontend/src/layouts/AdminLayout/AdminNavBar.tsx index 209486eca..e33cab6ab 100644 --- a/frontend/src/layouts/AdminLayout/AdminNavBar.tsx +++ b/frontend/src/layouts/AdminLayout/AdminNavBar.tsx @@ -22,6 +22,16 @@ const generalTabs = [ icon: faCog, link: "/admin/" }, + { + label: "Resource Overview", + icon: faBuilding, + link: "/admin/resources/overview" + }, + { + label: "Access Control", + icon: faUserTie, + link: "/admin/access-management" + }, { label: "Encryption", icon: faLock, @@ -49,19 +59,6 @@ const generalTabs = [ } ]; -const othersTabs = [ - { - label: "Access Controls", - icon: faUserTie, - link: "/admin/access-management" - }, - { - label: "Resource Overview", - icon: faBuilding, - link: "/admin/resources/overview" - } -]; - export const AdminNavBar = () => { const matchRoute = useMatchRoute(); @@ -83,7 +80,7 @@ export const AdminNavBar = () => { - {[...generalTabs, ...othersTabs].map((tab) => { + {generalTabs.map((tab) => { const isActive = matchRoute({ to: tab.link, fuzzy: false }); return ( diff --git a/frontend/src/layouts/KmsLayout/KmsLayout.tsx b/frontend/src/layouts/KmsLayout/KmsLayout.tsx index a925b7957..b41750035 100644 --- a/frontend/src/layouts/KmsLayout/KmsLayout.tsx +++ b/frontend/src/layouts/KmsLayout/KmsLayout.tsx @@ -50,14 +50,6 @@ export const KmsLayout = () => { > {({ isActive }) => KMIP} - - {({ isActive }) => Audit Logs} - { )} + + {({ isActive }) => Audit Logs} + { )} + + {({ isActive }) => ( + + App Connections + + )} + + + {({ isActive }) => ( + + Networking + + )} + + + {({ isActive }) => ( + + Secret Sharing + + )} + {({ isActive }) => ( { )} - - {({ isActive }) => ( - - App Connections - - )} - - - {({ isActive }) => ( - - Networking - - )} - {({ isActive }) => ( @@ -74,13 +81,6 @@ export const OrgNavBar = ({ isHidden }: Props) => { )} - - {({ isActive }) => ( - - Settings - - )} - {({ isActive }) => ( @@ -88,10 +88,10 @@ export const OrgNavBar = ({ isHidden }: Props) => { )} - + {({ isActive }) => ( - - Secret Sharing + + Settings )} diff --git a/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx b/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx index bd0bb7934..3a3056d6b 100644 --- a/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx +++ b/frontend/src/layouts/PkiManagerLayout/PkiManagerLayout.tsx @@ -110,14 +110,6 @@ export const PkiManagerLayout = () => { App Connections )} - - {({ isActive }) => Audit Logs} - { )} + + {({ isActive }) => Audit Logs} + { )} + + {({ isActive }) => ( + + Approvals + {Boolean( + secretApprovalReqCount?.open || accessApprovalRequestCount?.pendingCount + ) && ( + + {pendingRequestsCount} + + )} + + )} + { App Connections )} - - {({ isActive }) => ( - - Approvals - {Boolean( - secretApprovalReqCount?.open || accessApprovalRequestCount?.pendingCount - ) && ( - - {pendingRequestsCount} - - )} - - )} - - - {({ isActive }) => Audit Logs} - { )} + + {({ isActive }) => Audit Logs} + { > {({ isActive }) => App Connections} - - - {({ isActive }) => Audit Logs} - { )} + + {({ isActive }) => Audit Logs} + { ) } - - {({ isActive }) => Audit Logs} - { )} + + {({ isActive }) => Audit Logs} +