mirror of
https://github.com/Unleash/unleash.git
synced 2025-03-18 00:19:49 +01:00
feat: view diff in change requests (#8852)
This commit is contained in:
parent
1990ede59f
commit
90440c0439
@ -69,6 +69,11 @@ const StyledContainer: FC<{ children?: React.ReactNode }> = styled('div')(
|
|||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const ViewDiff = styled('span')(({ theme }) => ({
|
||||||
|
color: theme.palette.primary.main,
|
||||||
|
marginLeft: theme.spacing(1),
|
||||||
|
}));
|
||||||
|
|
||||||
const Truncated = styled('div')(() => ({
|
const Truncated = styled('div')(() => ({
|
||||||
...textTruncated,
|
...textTruncated,
|
||||||
maxWidth: 500,
|
maxWidth: 500,
|
||||||
@ -82,6 +87,9 @@ export const StrategyTooltipLink: FC<IStrategyTooltipLinkProps> = ({
|
|||||||
<StyledContainer>
|
<StyledContainer>
|
||||||
<GetFeatureStrategyIcon strategyName={change.payload.name} />
|
<GetFeatureStrategyIcon strategyName={change.payload.name} />
|
||||||
<Truncated>
|
<Truncated>
|
||||||
|
<Typography component='span'>
|
||||||
|
{formatStrategyName(change.payload.name)}
|
||||||
|
</Typography>
|
||||||
<TooltipLink
|
<TooltipLink
|
||||||
tooltip={children}
|
tooltip={children}
|
||||||
tooltipProps={{
|
tooltipProps={{
|
||||||
@ -89,9 +97,7 @@ export const StrategyTooltipLink: FC<IStrategyTooltipLinkProps> = ({
|
|||||||
maxHeight: 600,
|
maxHeight: 600,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography component='span'>
|
<ViewDiff>View Diff</ViewDiff>
|
||||||
{formatStrategyName(change.payload.name)}
|
|
||||||
</Typography>
|
|
||||||
</TooltipLink>
|
</TooltipLink>
|
||||||
<NameWithChangeInfo
|
<NameWithChangeInfo
|
||||||
newName={change.payload.title}
|
newName={change.payload.title}
|
||||||
|
Loading…
Reference in New Issue
Block a user