From 78763a4ec9873c9c7d4a3708b19129a3e0fbe342 Mon Sep 17 00:00:00 2001 From: Pietocha Date: Mon, 16 Dec 2024 09:48:35 +0100 Subject: [PATCH] SNOW added to defaultConfig --- public/defaultConfig.yaml | 2 ++ src/header/Header.tsx | 11 +++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/public/defaultConfig.yaml b/public/defaultConfig.yaml index 15c3504ba3..2894cc6f63 100644 --- a/public/defaultConfig.yaml +++ b/public/defaultConfig.yaml @@ -76,3 +76,5 @@ config: FEEDBACK: isEnabled: true link: https://sapinsights.eu.qualtrics.com/jfe/form/SV_d3UPNymSgUHAb9Y?product=SAP%20BTP,%20Kyma%20Runtime&product_filter=Kyma + SNOW: + isEnabled: true diff --git a/src/header/Header.tsx b/src/header/Header.tsx index ce073adb16..7ed3cc07bf 100644 --- a/src/header/Header.tsx +++ b/src/header/Header.tsx @@ -37,16 +37,15 @@ import { configFeaturesNames } from 'state/types'; export function Header() { useAvailableNamespaces(); - const { isEnabled: isFeedbackEnabled, link: feedbackLink } = useFeature( - configFeaturesNames.FEEDBACK, - ); - const { isEnabled: isSnowEnabled } = useFeature(configFeaturesNames.SNOW); - const [isMenuOpen, setIsMenuOpen] = useState(false); - const [isSnowOpen, setIsSnowOpen] = useState(isSnowEnabled); + const [isSnowOpen, setIsSnowOpen] = useState(false); const { t } = useTranslation(); const navigate = useNavigate(); + const { isEnabled: isFeedbackEnabled, link: feedbackLink } = useFeature( + configFeaturesNames.FEEDBACK, + ); + const { isEnabled: isSnowEnabled } = useFeature(configFeaturesNames.SNOW); const { githubLink, busolaVersion } = useGetBusolaVersionDetails(); const legalLinks = useGetLegalLinks();