[MM-59341] Migrate tooltips of "components/widgets/inputs/url_input/url_input.tsx" to WithTooltip (#27589)
Этот коммит содержится в:
@@ -5,10 +5,8 @@ import classNames from 'classnames';
|
|||||||
import React, {useEffect, useState} from 'react';
|
import React, {useEffect, useState} from 'react';
|
||||||
import {useIntl} from 'react-intl';
|
import {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';
|
|
||||||
import {getShortenedURL} from 'utils/url';
|
import {getShortenedURL} from 'utils/url';
|
||||||
|
|
||||||
import Input from '../input/input';
|
import Input from '../input/input';
|
||||||
@@ -93,17 +91,14 @@ function UrlInput({
|
|||||||
<div className={classNames('url-input-main', className)}>
|
<div className={classNames('url-input-main', className)}>
|
||||||
<div className='url-input-container'>
|
<div className='url-input-container'>
|
||||||
{isShortenedURL ? (
|
{isShortenedURL ? (
|
||||||
<OverlayTrigger
|
<WithTooltip
|
||||||
delayShow={Constants.OVERLAY_TIME_DELAY}
|
id='urlTooltip'
|
||||||
|
title={fullURL}
|
||||||
placement='top'
|
placement='top'
|
||||||
overlay={(
|
|
||||||
<Tooltip id='urlTooltip'>
|
|
||||||
{fullURL}
|
|
||||||
</Tooltip>
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
{urlInputLabel}
|
{urlInputLabel}
|
||||||
</OverlayTrigger>
|
</WithTooltip>
|
||||||
|
|
||||||
) : (
|
) : (
|
||||||
urlInputLabel
|
urlInputLabel
|
||||||
)}
|
)}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user