[MM-59327] Migrate tooltips of "components/admin_console/list_table/elapsed_duration_cell.tsx" to WithTooltip (#27639)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
29553008fa
Коммит
d25505a5b2
@@ -5,10 +5,7 @@ import moment from 'moment';
|
|||||||
import React, {useMemo} from 'react';
|
import React, {useMemo} from 'react';
|
||||||
import {FormattedMessage, useIntl} from 'react-intl';
|
import {FormattedMessage, useIntl} from 'react-intl';
|
||||||
|
|
||||||
import OverlayTrigger from 'components/overlay_trigger';
|
import WithTooltip from 'components/with_tooltip';
|
||||||
import Tooltip from 'components/tooltip';
|
|
||||||
|
|
||||||
import Constants from 'utils/constants';
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
date?: number;
|
date?: number;
|
||||||
@@ -67,16 +64,12 @@ export function ElapsedDurationCell(props: Props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<OverlayTrigger
|
<WithTooltip
|
||||||
delayShow={Constants.OVERLAY_TIME_DELAY}
|
id='system-users-cell-elapsed-duration-tooltip'
|
||||||
placement='bottom'
|
placement='bottom'
|
||||||
overlay={
|
title={exactPassedInDate}
|
||||||
<Tooltip id='system-users-cell-elapsed-duration-tooltip'>
|
|
||||||
{exactPassedInDate}
|
|
||||||
</Tooltip>
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
<span>{elapsedDaysText}</span>
|
<span>{elapsedDaysText}</span>
|
||||||
</OverlayTrigger>
|
</WithTooltip>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user