Skip to content

Commit

Permalink
SNOW added to defaultConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradPietocha committed Dec 16, 2024
1 parent a2fc685 commit 78763a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions public/defaultConfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 5 additions & 6 deletions src/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 78763a4

Please sign in to comment.