1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01: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 { 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 (
<DynamicSidebarModal
@ -159,19 +161,22 @@ export const ProjectStatusModal = ({ open, close }: Props) => {
<RowHeader>Health</RowHeader>
<ProjectHealthGrid />
</Row>
{!isOss() && (
<>
<Row>
<RowHeader>Activity in project</RowHeader>
<ProjectActivity />
</Row>
<Row>
<RowHeader>Activity in project</RowHeader>
<ProjectActivity />
</Row>
<Row>
<LifecycleHeaderRow>
<RowHeader>Flag lifecycle</RowHeader>
<LifecycleTooltip />
</LifecycleHeaderRow>
<ProjectLifecycleSummary />
</Row>
<Row>
<LifecycleHeaderRow>
<RowHeader>Flag lifecycle</RowHeader>
<LifecycleTooltip />
</LifecycleHeaderRow>
<ProjectLifecycleSummary />
</Row>
</>
)}
</WidgetContainer>
<CloseRow>
<FeedbackContainer>