Fied Link components usage. Now, all links use the Backstage's Link component

Signed-off-by: WarlenRodrigues <warlen.cesarrodrigues@gmail.com>
This commit is contained in:
WarlenRodrigues
2021-11-18 21:48:00 -03:00
committed by Fredrik Adelöw
parent 9e18e6b025
commit 22bf2da934
18 changed files with 62 additions and 48 deletions
@@ -19,12 +19,13 @@ import { WorkflowRunsTable } from '../WorkflowRunsTable';
import { Entity } from '@backstage/catalog-model';
import { useEntity } from '@backstage/plugin-catalog-react';
import { WorkflowRunStatus } from '../WorkflowRunStatus';
import { Link, Theme, makeStyles, LinearProgress } from '@material-ui/core';
import { Theme, makeStyles, LinearProgress } from '@material-ui/core';
import ExternalLinkIcon from '@material-ui/icons/Launch';
import { CLOUDBUILD_ANNOTATION } from '../useProjectName';
import {
InfoCard,
Link,
StructuredMetadataTable,
WarningPanel,
} from '@backstage/core-components';
@@ -62,7 +63,7 @@ const WidgetContent = ({
),
message: lastRun.message,
url: (
<Link href={lastRun.googleUrl} target="_blank">
<Link to={lastRun.googleUrl ?? ''} target="_blank">
See more on Google{' '}
<ExternalLinkIcon className={classes.externalLinkIcon} />
</Link>