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:
parent
b72ce90102
commit
358683278c
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user