Merge pull request #8156 from WarlenRodrigues/fixing_link_somponents_usage

Fixed Link components usage. Now, all links use the Backstage's Link c…
This commit is contained in:
Fredrik Adelöw
2021-12-21 08:10:15 +01:00
committed by GitHub
20 changed files with 85 additions and 61 deletions
@@ -18,7 +18,6 @@ import { readGitHubIntegrationConfigs } from '@backstage/integration';
import { useEntity } from '@backstage/plugin-catalog-react';
import {
LinearProgress,
Link,
makeStyles,
Theme,
Typography,
@@ -34,6 +33,7 @@ import { configApiRef, errorApiRef, useApi } from '@backstage/core-plugin-api';
import {
InfoCard,
InfoCardVariants,
Link,
StructuredMetadataTable,
} from '@backstage/core-components';
@@ -71,7 +71,7 @@ const WidgetContent = ({
),
message: lastRun.message,
url: (
<Link href={lastRun.githubUrl} target="_blank">
<Link to={lastRun.githubUrl ?? ''}>
See more on GitHub{' '}
<ExternalLinkIcon className={classes.externalLinkIcon} />
</Link>