This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Component } from 'react'
|
||||
import { DataGrid } from '@mui/x-data-grid'
|
||||
import { Link } from '@mui/material'
|
||||
import { Link, Typography, Box } from '@mui/material'
|
||||
import Moment from 'react-moment'
|
||||
|
||||
export default class Table extends Component {
|
||||
constructor ({ scanResults }) {
|
||||
@@ -16,13 +17,27 @@ export default class Table extends Component {
|
||||
flex: 2,
|
||||
renderCell: (cellValues) => {
|
||||
return (
|
||||
<Link
|
||||
target='_blank'
|
||||
href={cellValues.row.url}
|
||||
rel='noreferrer'
|
||||
<Box
|
||||
component='span'
|
||||
sx={{
|
||||
display: 'block'
|
||||
}}
|
||||
>
|
||||
{cellValues.row.fullName}
|
||||
</Link>
|
||||
<Link
|
||||
target='_blank'
|
||||
href={cellValues.row.url}
|
||||
rel='noreferrer'
|
||||
>
|
||||
{cellValues.row.fullName}
|
||||
</Link>
|
||||
<Typography variant='caption' display='block'>
|
||||
<Moment
|
||||
format='DD.MM hh:mm'
|
||||
>
|
||||
{cellValues.row.updatedAt}
|
||||
</Moment>
|
||||
</Typography>
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user