Skip to content

Commit

Permalink
FIX: Rearranged the side menu items and handled the disabling of side…
Browse files Browse the repository at this point in the history
… and top menu items (#1130)

Rearranged the sidemenu items and handle disabling of side and top menu items
  • Loading branch information
tahierhussain authored Feb 12, 2025
1 parent 1a79f8e commit 37a1f81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const SideNavBar = ({ collapsed }) => {
mainTitle: "MANAGE",
subMenu: [
{
id: 1.1,
id: 1.2,
title: "API Deployments",
description: "Unstructured to structured APIs",
image: apiDeploy,
Expand Down Expand Up @@ -197,7 +197,7 @@ const SideNavBar = ({ collapsed }) => {
];

if (dashboardSideMenuItem) {
unstractMenuItems[2].subMenu.push(dashboardSideMenuItem(orgName));
unstractMenuItems[0].subMenu.unshift(dashboardSideMenuItem(orgName));
}

const data = menu || unstractMenuItems;
Expand All @@ -216,10 +216,7 @@ const SideNavBar = ({ collapsed }) => {
return false;
}

return (
!unstractSubscriptionPlan?.subscriptionId &&
unstractSubscriptionPlan?.planType !== UNSTRACT_SUBSCRIPTION_PLANS?.TRIAL
);
return unstractSubscriptionPlan?.remainingDays <= 0;
}, [unstractSubscriptionPlan]);

data.forEach((mainMenuItem) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@ function TopNavBar({ isSimpleLayout, topNavBarOptions }) {
return false;
}

return (
!unstractSubscriptionPlan?.subscriptionId &&
unstractSubscriptionPlan?.planType !== UNSTRACT_SUBSCRIPTION_PLANS?.TRIAL
);
return unstractSubscriptionPlan?.remainingDays <= 0;
}, [unstractSubscriptionPlan]);

const isUnstract = !(selectedProduct && selectedProduct !== "unstract");
Expand Down

0 comments on commit 37a1f81

Please sign in to comment.