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
@@ -16,9 +16,10 @@
import React from 'react';
import { SentryIssue } from '../../api';
import { Link, Typography } from '@material-ui/core';
import { Typography } from '@material-ui/core';
import { makeStyles } from '@material-ui/core/styles';
import { BackstageTheme } from '@backstage/theme';
import { Link } from '@backstage/core-components';
function stripText(text: string, maxLength: number) {
return text.length > maxLength ? `${text.substr(0, maxLength)}...` : text;
@@ -53,7 +54,7 @@ export const ErrorCell = ({ sentryIssue }: { sentryIssue: SentryIssue }) => {
return (
<div className={classes.root}>
<Link href={sentryIssue.permalink}>
<Link to={sentryIssue.permalink}>
<Typography variant="body1" gutterBottom className={classes.text}>
{stripText(issueType, 28)}
</Typography>