diff --git a/frontend/src/components/navigations/top-nav-bar/TopNavBar.jsx b/frontend/src/components/navigations/top-nav-bar/TopNavBar.jsx index 3ca4d67c78..5c4b48f783 100644 --- a/frontend/src/components/navigations/top-nav-bar/TopNavBar.jsx +++ b/frontend/src/components/navigations/top-nav-bar/TopNavBar.jsx @@ -16,6 +16,7 @@ import { FileProtectOutlined, LikeOutlined, LoginOutlined, + SettingOutlined, } from "@ant-design/icons"; import { useEffect, useState, useMemo, useCallback } from "react"; import { useNavigate, useLocation } from "react-router-dom"; @@ -162,6 +163,8 @@ function TopNavBar({ isSimpleLayout, topNavBarOptions }) { const isUnstract = !(selectedProduct && selectedProduct !== "unstract"); const isAPIHub = selectedProduct && selectedProduct === "verticals"; + const isStaff = sessionDetails?.isStaff || sessionDetails?.is_staff; + const isOpenSource = orgName === "mock_org"; // Check user role and whether the onboarding is incomplete useEffect(() => { @@ -349,6 +352,22 @@ function TopNavBar({ isSimpleLayout, topNavBarOptions }) { }); } + // Custom Plans + if (isUnstract && isStaff && !isOpenSource) { + menuItems.push({ + key: "8", + label: ( + + ), + }); + } + const handleLogin = () => { const baseUrl = getBaseUrl(); const newURL = baseUrl + "/api/v1/login";