1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-23 13:46:45 +02:00

touch other kinds

This commit is contained in:
Thomas Heartman 2025-07-02 11:31:31 +02:00
parent 0262387917
commit 80b0ace426
3 changed files with 10 additions and 18 deletions

View File

@ -18,7 +18,7 @@ export const ArchiveFeatureChange: FC<IArchiveFeatureChange> = ({
<ChangeItemWrapper>
<ChangeItemInfo>
<ArchiveBox>Archiving flag</ArchiveBox>
{actions}
</ChangeItemInfo>
{actions}
</ChangeItemWrapper>
);

View File

@ -15,12 +15,6 @@ const StyledLink = styled(Link)(({ theme }) => ({
},
}));
const AddDependencyText = styled(Typography)(({ theme }) => ({
display: 'flex',
alignItems: 'center',
gap: theme.spacing(1),
}));
export const DependencyChange: FC<{
actions?: ReactNode;
change: IChangeRequestAddDependency | IChangeRequestDeleteDependency;
@ -33,11 +27,7 @@ export const DependencyChange: FC<{
<>
<ChangeItemWrapper>
<ChangeItemInfo>
<Typography
component='span'
color={'success.dark'}
// sx={{ display: 'inline' }}
>
<Typography component='span' color={'success.dark'}>
+ Adding dependency
</Typography>
<StyledLink
@ -50,23 +40,25 @@ export const DependencyChange: FC<{
{change.payload.variants?.length
? `(${change.payload.variants?.join(', ')})`
: null}
{actions}
</ChangeItemInfo>
{actions}
</ChangeItemWrapper>
</>
)}
{change.action === 'deleteDependency' && (
<ChangeItemWrapper>
<AddDependencyWrapper>
<ChangeItemInfo>
<Typography
sx={(theme) => ({
color: theme.palette.error.main,
})}
component='span'
display='inline'
>
- Deleting dependencies
</Typography>
</AddDependencyWrapper>
{actions}
{actions}
</ChangeItemInfo>
</ChangeItemWrapper>
)}
</>

View File

@ -51,8 +51,8 @@ const DeleteReleasePlan: FC<{
- Deleting release plan
</Typography>
<Typography>{releasePlan.name}</Typography>
{actions}
</ChangeItemInfo>
<div>{actions}</div>
</ChangeItemWrapper>
<ReleasePlan plan={releasePlan} readonly />
</>
@ -162,8 +162,8 @@ const AddReleasePlan: FC<{
+ Adding release plan
</Typography>
<Typography>{planPreview.name}</Typography>
{actions}
</ChangeItemInfo>
<div>{actions}</div>
</ChangeItemWrapper>
<ReleasePlan plan={planPreview} readonly />
</>