[MM-58406] Migrate tooltips of 'components/custom_status/custom_status_text' to WithTooltip (#27168)
Этот коммит содержится в:
@@ -6,10 +6,7 @@ import {useSelector} from 'react-redux';
|
||||
|
||||
import {isCustomStatusEnabled} from 'selectors/views/custom_status';
|
||||
|
||||
import OverlayTrigger from 'components/overlay_trigger';
|
||||
import Tooltip from 'components/tooltip';
|
||||
|
||||
import Constants from 'utils/constants';
|
||||
import WithTooltip from 'components/with_tooltip';
|
||||
|
||||
import type {GlobalState} from 'types/store';
|
||||
|
||||
@@ -51,17 +48,13 @@ const CustomStatusText = (props: ComponentProps) => {
|
||||
}
|
||||
|
||||
return (
|
||||
<OverlayTrigger
|
||||
delayShow={Constants.OVERLAY_TIME_DELAY}
|
||||
<WithTooltip
|
||||
id='custom-status-tooltip'
|
||||
placement={tooltipDirection}
|
||||
overlay={
|
||||
<Tooltip id='custom-status-tooltip'>
|
||||
{text}
|
||||
</Tooltip>
|
||||
}
|
||||
title={text}
|
||||
>
|
||||
{customStatusTextComponent}
|
||||
</OverlayTrigger>
|
||||
</WithTooltip>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user