From 17895562d572b5f2fb6ec0b761b68fdd6eac2ccf Mon Sep 17 00:00:00 2001 From: olehp Date: Wed, 7 Aug 2024 10:47:09 +0300 Subject: [PATCH] remove report tab --- src/components/Navigation/KebabMenu/index.tsx | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/components/Navigation/KebabMenu/index.tsx b/src/components/Navigation/KebabMenu/index.tsx index fedd2827f..adb10a792 100644 --- a/src/components/Navigation/KebabMenu/index.tsx +++ b/src/components/Navigation/KebabMenu/index.tsx @@ -1,7 +1,6 @@ import { actions as globalActions } from "../../../actions"; import { useGlobalStore } from "../../../containers/Main/stores/useGlobalStore"; -import { getFeatureFlagValue } from "../../../featureFlags"; -import { FeatureFlag, OpenInstallationWizardPayload } from "../../../types"; +import { OpenInstallationWizardPayload } from "../../../types"; import { sendUserActionTrackingEvent } from "../../../utils/actions/sendUserActionTrackingEvent"; import { isDigmaEngineRunning } from "../../../utils/isDigmaEngineRunning"; import { DigmaLogoFlatIcon } from "../../common/icons/16px/DigmaLogoFlatIcon"; @@ -65,12 +64,12 @@ export const KebabMenu = ({ onClose }: KebabMenuProps) => { } }; - const handleReportClick = () => { - window.sendMessageToDigma({ - action: globalActions.OPEN_REPORT - }); - onClose(); - }; + // const handleReportClick = () => { + // window.sendMessageToDigma({ + // action: globalActions.OPEN_REPORT + // }); + // onClose(); + // }; const handleLogoutClick = () => { sendUserActionTrackingEvent(trackingEvents.LOGOUT_CLICKED); @@ -114,14 +113,14 @@ export const KebabMenu = ({ onClose }: KebabMenuProps) => { onClick: handleDashboardClick }); - if (getFeatureFlagValue(backendInfo, FeatureFlag.IS_REPORT_ENABLED)) { - items.push({ - id: "report", - label: "Open Report", - icon: , - onClick: handleReportClick - }); - } + // if (getFeatureFlagValue(backendInfo, FeatureFlag.IS_REPORT_ENABLED)) { + // items.push({ + // id: "report", + // label: "Open Report", + // icon: , + // onClick: handleReportClick + // }); + // } } if (backendInfo?.centralize) {