mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02:00
Remove member count for default project (#2131)
* Remove member count from default project * Remove dependencies
This commit is contained in:
parent
e30b830305
commit
774d4234bb
@ -16,6 +16,7 @@ import {
|
||||
AccordionSummary,
|
||||
} from '@mui/material';
|
||||
import { UPDATE_PROJECT } from 'component/providers/AccessProvider/permissions';
|
||||
import { DEFAULT_PROJECT_ID } from '../../../../hooks/api/getters/useDefaultProject/useDefaultProjectId';
|
||||
|
||||
interface IProjectInfoProps {
|
||||
id: string;
|
||||
@ -125,7 +126,6 @@ const ProjectInfo = ({
|
||||
<p>projectId: {id}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className={styles.infoSection}>
|
||||
<div data-loading className={styles.percentageContainer}>
|
||||
<PercentageCircle percentage={health} />
|
||||
@ -154,7 +154,9 @@ const ProjectInfo = ({
|
||||
/>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<ConditionallyRender
|
||||
condition={id !== DEFAULT_PROJECT_ID}
|
||||
show={
|
||||
<div
|
||||
className={styles.infoSection}
|
||||
style={{ marginBottom: '0' }}
|
||||
@ -183,6 +185,8 @@ const ProjectInfo = ({
|
||||
/>
|
||||
</Link>
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
</aside>
|
||||
);
|
||||
|
@ -15,6 +15,7 @@ import AccessContext from 'contexts/AccessContext';
|
||||
import { DEFAULT_PROJECT_ID } from 'hooks/api/getters/useDefaultProject/useDefaultProjectId';
|
||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||||
import { DeleteProjectDialogue } from '../Project/DeleteProject/DeleteProjectDialogue';
|
||||
import { ConditionallyRender } from '../../common/ConditionallyRender/ConditionallyRender';
|
||||
|
||||
interface IProjectCardProps {
|
||||
name: string;
|
||||
@ -120,12 +121,17 @@ export const ProjectCard = ({
|
||||
<p data-loading>health</p>
|
||||
</div>
|
||||
|
||||
<ConditionallyRender
|
||||
condition={id !== DEFAULT_PROJECT_ID}
|
||||
show={
|
||||
<div className={classes.infoBox}>
|
||||
<p className={classes.infoStats} data-loading>
|
||||
{memberCount}
|
||||
</p>
|
||||
<p data-loading>members</p>
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
<DeleteProjectDialogue
|
||||
project={id}
|
||||
|
Loading…
Reference in New Issue
Block a user