From 34cf8dc46875a92e0e93f0623b76dc74fd5b472e Mon Sep 17 00:00:00 2001 From: Rita Anene <92169163+Camillarhi@users.noreply.github.com> Date: Sun, 28 Jul 2024 19:46:05 +0100 Subject: [PATCH] [MM-59341] Migrate tooltips of "components/widgets/inputs/url_input/url_input.tsx" to WithTooltip (#27589) --- .../widgets/inputs/url_input/url_input.tsx | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/webapp/channels/src/components/widgets/inputs/url_input/url_input.tsx b/webapp/channels/src/components/widgets/inputs/url_input/url_input.tsx index 9b675ef4e8..64f1c7fd5b 100644 --- a/webapp/channels/src/components/widgets/inputs/url_input/url_input.tsx +++ b/webapp/channels/src/components/widgets/inputs/url_input/url_input.tsx @@ -5,10 +5,8 @@ import classNames from 'classnames'; import React, {useEffect, useState} from 'react'; import {useIntl} from 'react-intl'; -import OverlayTrigger from 'components/overlay_trigger'; -import Tooltip from 'components/tooltip'; +import WithTooltip from 'components/with_tooltip'; -import Constants from 'utils/constants'; import {getShortenedURL} from 'utils/url'; import Input from '../input/input'; @@ -93,17 +91,14 @@ function UrlInput({
{isShortenedURL ? ( - - {fullURL} - - )} > {urlInputLabel} - + + ) : ( urlInputLabel )}