From 1c68aa2dbf0b6fee93317f0e5e27d6fdd8c681f1 Mon Sep 17 00:00:00 2001 From: Zubair Imtiaz <106450046+ZubairImtiaz3@users.noreply.github.com> Date: Tue, 13 Aug 2024 19:58:11 +0500 Subject: [PATCH] [MM-60164] Migrate tooltips of 'components/post_view/post_time/post_time.tsx' to WithTooltip (#27953) --- .../post_view/post_time/post_time.tsx | 28 ++++++++----------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/webapp/channels/src/components/post_view/post_time/post_time.tsx b/webapp/channels/src/components/post_view/post_time/post_time.tsx index f66ea841f9..470ff931c8 100644 --- a/webapp/channels/src/components/post_view/post_time/post_time.tsx +++ b/webapp/channels/src/components/post_view/post_time/post_time.tsx @@ -7,9 +7,8 @@ import {Link} from 'react-router-dom'; import * as GlobalActions from 'actions/global_actions'; -import OverlayTrigger from 'components/overlay_trigger'; import Timestamp, {RelativeRanges} from 'components/timestamp'; -import Tooltip from 'components/tooltip'; +import WithTooltip from 'components/with_tooltip'; import {Locations} from 'utils/constants'; import {isMobile} from 'utils/user_agent'; @@ -94,25 +93,20 @@ export default class PostTime extends React.PureComponent { ); return ( - - - + id={eventTime.toString()} + title={ + } > {content} - + ); } }