refactor: replace @material-ui Link
Signed-off-by: Dmitry Lobanov <lobanov.dmitry.s@gmail.com>
This commit is contained in:
committed by
Fredrik Adelöw
parent
b77eb63ef8
commit
f905853ad6
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import { Link } from '@material-ui/core';
|
||||
import { useParams } from 'react-router-dom';
|
||||
import { gitOpsApiRef, Status } from '../../api';
|
||||
import { transformRunStatus } from '../ProfileCatalog';
|
||||
@@ -27,6 +26,7 @@ import {
|
||||
Table,
|
||||
Progress,
|
||||
HeaderLabel,
|
||||
Link,
|
||||
} from '@backstage/core-components';
|
||||
import { useApi, githubAuthApiRef } from '@backstage/core-plugin-api';
|
||||
|
||||
@@ -94,12 +94,7 @@ const ClusterPage = () => {
|
||||
data={transformRunStatus(runStatus)}
|
||||
columns={columns}
|
||||
/>
|
||||
<Link
|
||||
hidden={runLink === ''}
|
||||
rel="noopener noreferrer"
|
||||
href={`${runLink}?check_suite_focus=true`}
|
||||
target="_blank"
|
||||
>
|
||||
<Link hidden={runLink === ''} to={`${runLink}?check_suite_focus=true`}>
|
||||
Details
|
||||
</Link>
|
||||
</Content>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { TextField, List, ListItem, Link } from '@material-ui/core';
|
||||
import { TextField, List, ListItem } from '@material-ui/core';
|
||||
|
||||
import ClusterTemplateCardList from '../ClusterTemplateCardList';
|
||||
import ProfileCardList from '../ProfileCardList';
|
||||
@@ -32,6 +32,7 @@ import {
|
||||
SimpleStepper,
|
||||
SimpleStepperStep,
|
||||
InfoCard,
|
||||
Link,
|
||||
Progress,
|
||||
Table,
|
||||
StatusWarning,
|
||||
@@ -340,9 +341,7 @@ const ProfileCatalog = () => {
|
||||
/>
|
||||
<Link
|
||||
hidden={runLink === ''}
|
||||
rel="noopener noreferrer"
|
||||
href={`${runLink}?check_suite_focus=true`}
|
||||
target="_blank"
|
||||
to={`${runLink}?check_suite_focus=true`}
|
||||
>
|
||||
Details
|
||||
</Link>
|
||||
|
||||
Reference in New Issue
Block a user