diff --git a/webapp/channels/src/components/global_header/right_controls/settings_button/settings_button.tsx b/webapp/channels/src/components/global_header/right_controls/settings_button/settings_button.tsx index 53197a67ba..139d946860 100644 --- a/webapp/channels/src/components/global_header/right_controls/settings_button/settings_button.tsx +++ b/webapp/channels/src/components/global_header/right_controls/settings_button/settings_button.tsx @@ -6,11 +6,10 @@ import {FormattedMessage, useIntl} from 'react-intl'; import IconButton from '@mattermost/compass-components/components/icon-button'; // eslint-disable-line no-restricted-imports -import OverlayTrigger from 'components/overlay_trigger'; -import Tooltip from 'components/tooltip'; import UserSettingsModal from 'components/user_settings/modal'; +import WithTooltip from 'components/with_tooltip'; -import Constants, {ModalIdentifiers} from 'utils/constants'; +import {ModalIdentifiers} from 'utils/constants'; import type {ModalData} from 'types/actions'; @@ -23,21 +22,16 @@ type Props = { const SettingsButton = (props: Props): JSX.Element | null => { const {formatMessage} = useIntl(); - const tooltip = ( - - - - ); - return ( - + } placement='bottom' - overlay={tooltip} > { aria-haspopup='dialog' aria-label={formatMessage({id: 'global_header.productSettings', defaultMessage: 'Settings'})} /> - + ); };