Skip to content

Commit

Permalink
[MM-58406] Migrate tooltips of 'components/custom_status/custom_statu…
Browse files Browse the repository at this point in the history
…s_text' to WithTooltip (mattermost#27168)
  • Loading branch information
ahmadJT authored Jun 1, 2024
1 parent b7cc4cb commit 58b7032
Showing 1 changed file with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ import {useSelector} from 'react-redux';

import {isCustomStatusEnabled} from 'selectors/views/custom_status';

import OverlayTrigger from 'components/overlay_trigger';
import Tooltip from 'components/tooltip';

import Constants from 'utils/constants';
import WithTooltip from 'components/with_tooltip';

import type {GlobalState} from 'types/store';

Expand Down Expand Up @@ -51,17 +48,13 @@ const CustomStatusText = (props: ComponentProps) => {
}

return (
<OverlayTrigger
delayShow={Constants.OVERLAY_TIME_DELAY}
<WithTooltip
id='custom-status-tooltip'
placement={tooltipDirection}
overlay={
<Tooltip id='custom-status-tooltip'>
{text}
</Tooltip>
}
title={text}
>
{customStatusTextComponent}
</OverlayTrigger>
</WithTooltip>
);
};

Expand Down

0 comments on commit 58b7032

Please sign in to comment.