fix: kube link
This commit is contained in:
parent
0eb1a0973d
commit
2beed0b5c7
@ -6,6 +6,7 @@ import React, { useContext } from 'react';
|
||||
import moment from 'moment';
|
||||
|
||||
import { useQuery } from '@apollo/react-hooks';
|
||||
import Link from '@material-ui/core/Link';
|
||||
import TableHead from '@material-ui/core/TableHead';
|
||||
import TableRow from '@material-ui/core/TableRow';
|
||||
import TableBody from '@material-ui/core/TableBody';
|
||||
@ -16,7 +17,6 @@ import { ConsoleContext, useQueryStatusReducer, useSorter } from '../../../hooks
|
||||
|
||||
import Table from '../../../components/Table';
|
||||
import TableCell from '../../../components/TableCell';
|
||||
import AppLink from '../../../components/AppLink';
|
||||
|
||||
const KubeRecords = () => {
|
||||
const { config } = useContext(ConsoleContext);
|
||||
@ -43,11 +43,11 @@ const KubeRecords = () => {
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
<TableBody>
|
||||
{appData.sort(sorter).map(({ id, names, createTime, attributes: { name: displayName, version, package: packageLink } }) => {
|
||||
{appData.sort(sorter).map(({ id, names, createTime, attributes: { name: displayName, version, url } }) => {
|
||||
return (
|
||||
<TableRow key={id} size='small'>
|
||||
<TableCell monospace>
|
||||
{names.map(wrn => <div key={wrn}> <AppLink config={config} wrn={wrn} /> </div>)}
|
||||
{names.map(wrn => <div key={wrn}>{url ? <Link href={url}>{wrn}</Link> : {wrn}}</div>)}
|
||||
</TableCell>
|
||||
<TableCell monospace>
|
||||
{version}
|
||||
|
Loading…
Reference in New Issue
Block a user