1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-01 01:18:10 +02:00

chore: hide project status widgets for oss (#8827)

Hiding 2 widgets for oss.
This commit is contained in:
Jaanus Sellin 2024-11-21 15:17:38 +02:00 committed by GitHub
parent b72ce90102
commit 358683278c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,6 +8,7 @@ import { HelpIcon } from 'component/common/HelpIcon/HelpIcon';
import { ProjectHealthGrid } from './ProjectHealthGrid'; import { ProjectHealthGrid } from './ProjectHealthGrid';
import { useFeedback } from 'component/feedbackNew/useFeedback'; import { useFeedback } from 'component/feedbackNew/useFeedback';
import FeedbackIcon from '@mui/icons-material/ChatOutlined'; import FeedbackIcon from '@mui/icons-material/ChatOutlined';
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
const ModalContentContainer = styled('section')(({ theme }) => ({ const ModalContentContainer = styled('section')(({ theme }) => ({
minHeight: '100vh', minHeight: '100vh',
@ -137,6 +138,7 @@ export const ProjectStatusModal = ({ open, close }: Props) => {
'What should be improved on the project status overview?', 'What should be improved on the project status overview?',
}); });
}; };
const { isOss } = useUiConfig();
return ( return (
<DynamicSidebarModal <DynamicSidebarModal
@ -159,19 +161,22 @@ export const ProjectStatusModal = ({ open, close }: Props) => {
<RowHeader>Health</RowHeader> <RowHeader>Health</RowHeader>
<ProjectHealthGrid /> <ProjectHealthGrid />
</Row> </Row>
{!isOss() && (
<>
<Row>
<RowHeader>Activity in project</RowHeader>
<ProjectActivity />
</Row>
<Row> <Row>
<RowHeader>Activity in project</RowHeader> <LifecycleHeaderRow>
<ProjectActivity /> <RowHeader>Flag lifecycle</RowHeader>
</Row> <LifecycleTooltip />
</LifecycleHeaderRow>
<Row> <ProjectLifecycleSummary />
<LifecycleHeaderRow> </Row>
<RowHeader>Flag lifecycle</RowHeader> </>
<LifecycleTooltip /> )}
</LifecycleHeaderRow>
<ProjectLifecycleSummary />
</Row>
</WidgetContainer> </WidgetContainer>
<CloseRow> <CloseRow>
<FeedbackContainer> <FeedbackContainer>