remove learn more link from catalog
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
import { featureEnabled } from '@grafana/runtime';
|
||||
import { Badge, PluginSignatureBadge, Stack, TextLink, useStyles2 } from '@grafana/ui';
|
||||
import { Badge, PluginSignatureBadge, Stack, useStyles2 } from '@grafana/ui';
|
||||
|
||||
import { CatalogPlugin } from '../../types';
|
||||
|
||||
@@ -27,13 +27,6 @@ export function PluginEnterpriseBadge({ plugin }: Props): React.ReactElement {
|
||||
color="blue"
|
||||
className={customBadgeStyles}
|
||||
/>
|
||||
<TextLink
|
||||
external={true}
|
||||
inline={false}
|
||||
href={`https://grafana.com/grafana/plugins/${plugin.id}?utm_source=grafana_catalog_learn_more`}
|
||||
>
|
||||
Learn more
|
||||
</TextLink>
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -60,12 +60,11 @@ describe('PluginListItemBadges', () => {
|
||||
expect(screen.queryByRole('button', { name: /learn more/i })).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('renders an enterprise badge with icon and link (when a license is invalid)', () => {
|
||||
it('renders an enterprise badge with icon (when a license is invalid)', () => {
|
||||
config.licenseInfo.enabledFeatures = {};
|
||||
render(<PluginListItemBadges plugin={{ ...plugin, isEnterprise: true }} />);
|
||||
expect(screen.getByText(/enterprise/i)).toBeVisible();
|
||||
expect(screen.getByLabelText(/lock icon/i)).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: /learn more/i })).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('renders a error badge (when plugin has an error)', () => {
|
||||
|
||||
Reference in New Issue
Block a user