[MM-59333] Migrate tooltips of "components/sidebar/mobile_sidebar_header/contents/contents.tsx" to WithTooltip (#27596)

Этот коммит содержится в:
Shaon Debnath
2024-07-29 12:37:38 +05:30
коммит произвёл GitHub
родитель d353167f9c
Коммит 2f94640b22

Просмотреть файл

@@ -8,10 +8,9 @@ import type {UserProfile} from '@mattermost/types/users';
import CustomStatusEmoji from 'components/custom_status/custom_status_emoji';
import CustomStatusModal from 'components/custom_status/custom_status_modal';
import OverlayTrigger from 'components/overlay_trigger';
import Tooltip from 'components/tooltip';
import WithTooltip from 'components/with_tooltip';
import Constants, {ModalIdentifiers} from 'utils/constants';
import {ModalIdentifiers} from 'utils/constants';
import type {ModalData} from 'types/actions';
@@ -68,13 +67,13 @@ export default class Contents extends React.PureComponent<Props> {
if (this.props.teamDescription) {
teamNameWithToolTip = (
<OverlayTrigger
delayShow={Constants.OVERLAY_TIME_DELAY}
<WithTooltip
id='team-name__tooltip'
placement='bottom'
overlay={<Tooltip id='team-name__tooltip'>{this.props.teamDescription}</Tooltip>}
title={this.props.teamDescription}
>
{teamNameWithToolTip}
</OverlayTrigger>
</WithTooltip>
);
}