diff --git a/frontend/src/component/changeRequest/ChangeRequest/StrategyTooltipLink/StrategyTooltipLink.tsx b/frontend/src/component/changeRequest/ChangeRequest/StrategyTooltipLink/StrategyTooltipLink.tsx index 8e8afaf751..10b68bfead 100644 --- a/frontend/src/component/changeRequest/ChangeRequest/StrategyTooltipLink/StrategyTooltipLink.tsx +++ b/frontend/src/component/changeRequest/ChangeRequest/StrategyTooltipLink/StrategyTooltipLink.tsx @@ -48,6 +48,36 @@ export const StrategyDiff: FC<{ ); }; + +export const StrategyName: FC<{ + change: + | IChangeRequestAddStrategy + | IChangeRequestUpdateStrategy + | IChangeRequestDeleteStrategy; + previousTitle: string | undefined; +}> = ({ change, previousTitle }) => { + return ( + <> + + + {previousTitle || + formatStrategyName(change.payload.name)} + {' '} + + } + /> + + {change.payload.title} + + + ); +}; + interface IStrategyTooltipLinkProps { change: | IChangeRequestAddStrategy @@ -77,34 +107,18 @@ export const StrategyTooltipLink: FC = ({ - - - {previousTitle || - formatStrategyName(change.payload.name)} - {' '} - - } - /> - - - - {change.payload.title || - formatStrategyName(change.payload.name)} - - - + + + {formatStrategyName(change.payload.name)} + + + {} );