From 410da4aec185046afdc58026206c1bc79c066427 Mon Sep 17 00:00:00 2001 From: Rita Anene <92169163+Camillarhi@users.noreply.github.com> Date: Mon, 19 Aug 2024 17:49:49 +0100 Subject: [PATCH] [MM-60165] Migrate tooltips of "components/new_channel_modal/new_channel_modal.tsx" to WithTooltip (#27967) --- .../new_channel_modal/new_channel_modal.tsx | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/webapp/channels/src/components/new_channel_modal/new_channel_modal.tsx b/webapp/channels/src/components/new_channel_modal/new_channel_modal.tsx index 7713343aca..1e7a1c6764 100644 --- a/webapp/channels/src/components/new_channel_modal/new_channel_modal.tsx +++ b/webapp/channels/src/components/new_channel_modal/new_channel_modal.tsx @@ -3,7 +3,6 @@ import classNames from 'classnames'; import React, {useCallback, useState} from 'react'; -import {Tooltip} from 'react-bootstrap'; import {FormattedMessage, useIntl} from 'react-intl'; import {useDispatch, useSelector} from 'react-redux'; @@ -24,8 +23,8 @@ import {switchToChannel} from 'actions/views/channel'; import {closeModal} from 'actions/views/modals'; import ChannelNameFormField from 'components/channel_name_form_field/channel_name_form_field'; -import OverlayTrigger from 'components/overlay_trigger'; import PublicPrivateSelector from 'components/widgets/public-private-selector/public-private-selector'; +import WithTooltip from 'components/with_tooltip'; import Pluggable from 'plugins/pluggable'; import Constants, {ModalIdentifiers} from 'utils/constants'; @@ -221,13 +220,10 @@ const NewChannelModal = () => { const canCreate = displayName && !urlError && type && !purposeError && !serverError && canCreateFromPluggable && !channelInputError; const newBoardInfoIcon = ( - +
{ defaultMessage={'Use any of our templates to manage your tasks or start from scratch with your own!'} />
- - )} + + } + placement='right' > -
+ ); return (