From fc198bb46a3836d5f0a016b967457d3f6c803adf Mon Sep 17 00:00:00 2001 From: Ivy Gesare <83957195+Gesare5@users.noreply.github.com> Date: Wed, 7 Aug 2024 18:46:52 +0300 Subject: [PATCH] [MM-59891] Migrate tooltips of 'components/file_attachment/file_attachment.tsx' to WithTooltip (#27855) --- .../file_attachment/file_attachment.tsx | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/webapp/channels/src/components/file_attachment/file_attachment.tsx b/webapp/channels/src/components/file_attachment/file_attachment.tsx index 2554df8508..a6f63924ff 100644 --- a/webapp/channels/src/components/file_attachment/file_attachment.tsx +++ b/webapp/channels/src/components/file_attachment/file_attachment.tsx @@ -12,10 +12,9 @@ import {getFileThumbnailUrl, getFileUrl} from 'mattermost-redux/utils/file_utils import useTooltip from 'components/common/hooks/useTooltip'; import GetPublicModal from 'components/get_public_link_modal'; -import OverlayTrigger from 'components/overlay_trigger'; -import Tooltip from 'components/tooltip'; import Menu from 'components/widgets/menu/menu'; import MenuWrapper from 'components/widgets/menu/menu_wrapper'; +import WithTooltip from 'components/with_tooltip'; import {Constants, FileTypes, ModalIdentifiers} from 'utils/constants'; import {trimFilename} from 'utils/file_utils'; @@ -226,22 +225,15 @@ export default function FileAttachment(props: Props) { ); } - const tooltip = ( - - {formatMessage({id: 'file_search_result_item.more_actions', defaultMessage: 'More Actions'})} - - ); - return ( - - +