diff --git a/webapp/channels/src/components/plugin_marketplace/marketplace_item/marketplace_item.tsx b/webapp/channels/src/components/plugin_marketplace/marketplace_item/marketplace_item.tsx index 18d95d7a55..254de5b917 100644 --- a/webapp/channels/src/components/plugin_marketplace/marketplace_item/marketplace_item.tsx +++ b/webapp/channels/src/components/plugin_marketplace/marketplace_item/marketplace_item.tsx @@ -7,12 +7,9 @@ import React from 'react'; import type {MarketplaceLabel} from '@mattermost/types/marketplace'; import ExternalLink from 'components/external_link'; -import OverlayTrigger from 'components/overlay_trigger'; -import Tooltip from 'components/tooltip'; import PluginIcon from 'components/widgets/icons/plugin_icon'; import Tag from 'components/widgets/tag/tag'; - -import {Constants} from 'utils/constants'; +import WithTooltip from 'components/with_tooltip'; // Label renders a tag showing a name and a description in a tooltip. // If a URL is provided, clicking on the tag will open the URL in a new tab. @@ -28,17 +25,13 @@ export const Label = ({name, description, url}: MarketplaceLabel): JSX.Element = let label; if (description) { label = ( - - {description} - - } > {tag} - + ); } else { label = tag; @@ -142,23 +135,14 @@ export default class MarketplaceItem extends React.PureComponent - {descriptionText} - - ); - description = ( - {description} - + ); }