From 50b3af38aa1b242ed6a19f2704025926d93386a6 Mon Sep 17 00:00:00 2001 From: Arya Khochare <91268931+Aryakoste@users.noreply.github.com> Date: Sat, 20 Jul 2024 15:05:20 +0530 Subject: [PATCH] [MM-58515] Migrate tooltips of "components/shared_channel_indicator.tsx" to WithTooltip (#27247) --- .../components/shared_channel_indicator.tsx | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/webapp/channels/src/components/shared_channel_indicator.tsx b/webapp/channels/src/components/shared_channel_indicator.tsx index b241265cdc..d93c8301e7 100644 --- a/webapp/channels/src/components/shared_channel_indicator.tsx +++ b/webapp/channels/src/components/shared_channel_indicator.tsx @@ -6,8 +6,7 @@ import {FormattedMessage} from 'react-intl'; import type {ChannelType} from '@mattermost/types/channels'; -import OverlayTrigger from 'components/overlay_trigger'; -import Tooltip from 'components/tooltip'; +import WithTooltip from 'components/with_tooltip'; import {Constants} from 'utils/constants'; @@ -29,23 +28,21 @@ const SharedChannelIndicator: React.FC = (props: Props): JSX.Element => { return sharedIcon; } - const sharedTooltip = ( - - - + const sharedTooltipText = ( + ); return ( - {sharedIcon} - + ); };