1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-27 13:49:10 +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> <ChangeItemWrapper>
<ChangeItemInfo> <ChangeItemInfo>
<ArchiveBox>Archiving flag</ArchiveBox> <ArchiveBox>Archiving flag</ArchiveBox>
</ChangeItemInfo>
{actions} {actions}
</ChangeItemInfo>
</ChangeItemWrapper> </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<{ export const DependencyChange: FC<{
actions?: ReactNode; actions?: ReactNode;
change: IChangeRequestAddDependency | IChangeRequestDeleteDependency; change: IChangeRequestAddDependency | IChangeRequestDeleteDependency;
@ -33,11 +27,7 @@ export const DependencyChange: FC<{
<> <>
<ChangeItemWrapper> <ChangeItemWrapper>
<ChangeItemInfo> <ChangeItemInfo>
<Typography <Typography component='span' color={'success.dark'}>
component='span'
color={'success.dark'}
// sx={{ display: 'inline' }}
>
+ Adding dependency + Adding dependency
</Typography> </Typography>
<StyledLink <StyledLink
@ -50,23 +40,25 @@ export const DependencyChange: FC<{
{change.payload.variants?.length {change.payload.variants?.length
? `(${change.payload.variants?.join(', ')})` ? `(${change.payload.variants?.join(', ')})`
: null} : null}
</ChangeItemInfo>
{actions} {actions}
</ChangeItemInfo>
</ChangeItemWrapper> </ChangeItemWrapper>
</> </>
)} )}
{change.action === 'deleteDependency' && ( {change.action === 'deleteDependency' && (
<ChangeItemWrapper> <ChangeItemWrapper>
<AddDependencyWrapper> <ChangeItemInfo>
<Typography <Typography
sx={(theme) => ({ sx={(theme) => ({
color: theme.palette.error.main, color: theme.palette.error.main,
})} })}
component='span'
display='inline'
> >
- Deleting dependencies - Deleting dependencies
</Typography> </Typography>
</AddDependencyWrapper>
{actions} {actions}
</ChangeItemInfo>
</ChangeItemWrapper> </ChangeItemWrapper>
)} )}
</> </>

View File

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