[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 {isCustomStatusEnabled} from 'selectors/views/custom_status';
|
||||||
|
|
||||||
import OverlayTrigger from 'components/overlay_trigger';
|
import WithTooltip from 'components/with_tooltip';
|
||||||
import Tooltip from 'components/tooltip';
|
|
||||||
|
|
||||||
import Constants from 'utils/constants';
|
|
||||||
|
|
||||||
import type {GlobalState} from 'types/store';
|
import type {GlobalState} from 'types/store';
|
||||||
|
|
||||||
@@ -51,17 +48,13 @@ const CustomStatusText = (props: ComponentProps) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<OverlayTrigger
|
<WithTooltip
|
||||||
delayShow={Constants.OVERLAY_TIME_DELAY}
|
id='custom-status-tooltip'
|
||||||
placement={tooltipDirection}
|
placement={tooltipDirection}
|
||||||
overlay={
|
title={text}
|
||||||
<Tooltip id='custom-status-tooltip'>
|
|
||||||
{text}
|
|
||||||
</Tooltip>
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
{customStatusTextComponent}
|
{customStatusTextComponent}
|
||||||
</OverlayTrigger>
|
</WithTooltip>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user