diff --git a/webapp/channels/src/components/widgets/menu/menu_items/restricted_indicator.tsx b/webapp/channels/src/components/widgets/menu/menu_items/restricted_indicator.tsx index 79fc7a3f98..8af881cd4a 100644 --- a/webapp/channels/src/components/widgets/menu/menu_items/restricted_indicator.tsx +++ b/webapp/channels/src/components/widgets/menu/menu_items/restricted_indicator.tsx @@ -7,12 +7,11 @@ import {useIntl} from 'react-intl'; import type {MessageDescriptor} from 'react-intl'; import FeatureRestrictedModal from 'components/feature_restricted_modal/feature_restricted_modal'; -import OverlayTrigger from 'components/overlay_trigger'; import ToggleModalButton from 'components/toggle_modal_button'; -import Tooltip from 'components/tooltip'; +import WithTooltip from 'components/with_tooltip'; import {FREEMIUM_TO_ENTERPRISE_TRIAL_LENGTH_DAYS} from 'utils/cloud_utils'; -import {Constants, LicenseSkus, ModalIdentifiers} from 'utils/constants'; +import {LicenseSkus, ModalIdentifiers} from 'utils/constants'; import './restricted_indicator.scss'; @@ -88,14 +87,10 @@ const RestrictedIndicator = ({ return ( - + {tooltipTitle || formatMessage({id: 'restricted_indicator.tooltip.title', defaultMessage: '{minimumPlanRequiredForFeature} feature'}, {minimumPlanRequiredForFeature: capitalizeFirstLetter(minimumPlanRequiredForFeature!)})} @@ -106,8 +101,9 @@ const RestrictedIndicator = ({ tooltipMessage || formatMessage({id: 'restricted_indicator.tooltip.mesage', defaultMessage: 'During your trial you are able to use this feature.'}) )} - - )} + + } + placement='right' > {useModal && blocked ? ( @@ -139,7 +135,7 @@ const RestrictedIndicator = ({ {ctaExtraContent} )} - + ); };