mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
feat: static link to archived flags in archived project (#7913)
This commit is contained in:
parent
7008070fc1
commit
2050cb0b76
@ -38,6 +38,7 @@ export const StyledDivHeader = styled('div')(({ theme }) => ({
|
|||||||
...flexRow,
|
...flexRow,
|
||||||
width: '100%',
|
width: '100%',
|
||||||
marginBottom: theme.spacing(2),
|
marginBottom: theme.spacing(2),
|
||||||
|
gap: theme.spacing(1),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const StyledCardTitle = styled('h3')(({ theme }) => ({
|
export const StyledCardTitle = styled('h3')(({ theme }) => ({
|
||||||
@ -89,7 +90,7 @@ export const StyledIconBox = styled(Box)(({ theme }) => ({
|
|||||||
display: 'grid',
|
display: 'grid',
|
||||||
placeItems: 'center',
|
placeItems: 'center',
|
||||||
padding: theme.spacing(0, 0.5, 0, 1),
|
padding: theme.spacing(0, 0.5, 0, 1),
|
||||||
marginRight: theme.spacing(2),
|
marginRight: theme.spacing(1),
|
||||||
alignSelf: 'baseline',
|
alignSelf: 'baseline',
|
||||||
color: theme.palette.primary.main,
|
color: theme.palette.primary.main,
|
||||||
height: '100%',
|
height: '100%',
|
||||||
|
@ -103,25 +103,12 @@ export const ProjectArchiveCard: FC<ProjectArchiveCardProps> = ({
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<ConditionallyRender
|
<Link
|
||||||
condition={typeof archivedFeaturesCount !== 'undefined'}
|
component={RouterLink}
|
||||||
show={
|
to={`/archive?search=project%3A${encodeURI(id)}`}
|
||||||
<Link
|
>
|
||||||
component={RouterLink}
|
<p>View archived flags</p>
|
||||||
to={`/archive?search=project%3A${encodeURI(id)}`}
|
</Link>
|
||||||
>
|
|
||||||
<StyledParagraphInfo disabled data-loading>
|
|
||||||
{archivedFeaturesCount}
|
|
||||||
</StyledParagraphInfo>
|
|
||||||
<p data-loading>
|
|
||||||
archived{' '}
|
|
||||||
{archivedFeaturesCount === 1
|
|
||||||
? 'flag'
|
|
||||||
: 'flags'}
|
|
||||||
</p>
|
|
||||||
</Link>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</StyledDivInfo>
|
</StyledDivInfo>
|
||||||
</StyledProjectCardBody>
|
</StyledProjectCardBody>
|
||||||
<ProjectCardFooter id={id} disabled owners={owners}>
|
<ProjectCardFooter id={id} disabled owners={owners}>
|
||||||
|
Loading…
Reference in New Issue
Block a user