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
@@ -14,10 +14,9 @@
* limitations under the License.
*/
import React from 'react';
import { Link } from '@material-ui/core';
import { ClusterStatus } from '../../api';
import { transformStatus } from '../ProfileCatalog/ProfileCatalog';
import { Table, TableColumn } from '@backstage/core-components';
import { Link, Table, TableColumn } from '@backstage/core-components';
const columns: TableColumn[] = [
{
@@ -25,7 +24,7 @@ const columns: TableColumn[] = [
field: 'name',
highlight: true,
render: (componentData: any) => (
<Link href={`/gitops-cluster/${componentData.name}`}>
<Link to={`/gitops-cluster/${encodeURIComponent(componentData.name)}`}>
{componentData.name}
</Link>
),