diff --git a/src/app/components/TrimLinkLabel/index.tsx b/src/app/components/TrimLinkLabel/index.tsx index 937ae2210e..8336ccb103 100644 --- a/src/app/components/TrimLinkLabel/index.tsx +++ b/src/app/components/TrimLinkLabel/index.tsx @@ -1,9 +1,10 @@ -import { FC } from 'react' +import { FC, ReactNode } from 'react' import { Link as RouterLink } from 'react-router-dom' import Link from '@mui/material/Link' import Tooltip from '@mui/material/Tooltip' import { trimLongString } from '../../utils/trimLongString' import { tooltipDelay } from '../../../styles/theme' +import { HighlightedTrimmedText } from '../HighlightedText/HighlightedTrimmedText' type TrimLinkLabelProps = { label: string @@ -24,7 +25,9 @@ type TrimEndLinkLabelProps = TrimLinkLabelProps & { } export const TrimEndLinkLabel: FC = ({ label, to, trimStart, highlightedPart }) => { - const trimmedLabel = trimLongString(label, trimStart, 0) // TODO: + const trimmedLabel = ( + + ) if (!trimmedLabel) { return null } @@ -32,7 +35,7 @@ export const TrimEndLinkLabel: FC = ({ label, to, trimSta } type TrimLinkProps = TrimLinkLabelProps & { - trimmedLabel: string + trimmedLabel: ReactNode } const TrimLink: FC = ({ label, to, trimmedLabel }) => {