From 358683278c44771b11ca81f1def394606091f129 Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Thu, 21 Nov 2024 15:17:38 +0200 Subject: [PATCH] chore: hide project status widgets for oss (#8827) Hiding 2 widgets for oss. --- .../ProjectStatus/ProjectStatusModal.tsx | 29 +++++++++++-------- 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/frontend/src/component/project/Project/ProjectStatus/ProjectStatusModal.tsx b/frontend/src/component/project/Project/ProjectStatus/ProjectStatusModal.tsx index ef06322fb3..018636264f 100644 --- a/frontend/src/component/project/Project/ProjectStatus/ProjectStatusModal.tsx +++ b/frontend/src/component/project/Project/ProjectStatus/ProjectStatusModal.tsx @@ -8,6 +8,7 @@ import { HelpIcon } from 'component/common/HelpIcon/HelpIcon'; import { ProjectHealthGrid } from './ProjectHealthGrid'; import { useFeedback } from 'component/feedbackNew/useFeedback'; import FeedbackIcon from '@mui/icons-material/ChatOutlined'; +import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; const ModalContentContainer = styled('section')(({ theme }) => ({ minHeight: '100vh', @@ -137,6 +138,7 @@ export const ProjectStatusModal = ({ open, close }: Props) => { 'What should be improved on the project status overview?', }); }; + const { isOss } = useUiConfig(); return ( { Health + {!isOss() && ( + <> + + Activity in project + + - - Activity in project - - - - - - Flag lifecycle - - - - + + + Flag lifecycle + + + + + + )}