import React from 'react' import { TableCell, TableRow, Typography } from '@material-ui/core' import { TimeAgo } from 'components/TimeAgo' import Link from 'components/Link' import { OffChainReporting } from './JobsIndex' import { createStyles, withStyles, WithStyles, Theme, } from '@material-ui/core/styles' const styles = (theme: Theme) => createStyles({ cell: { paddingTop: theme.spacing.unit * 2, paddingBottom: theme.spacing.unit * 2, }, link: { '&::before': { content: "''", position: 'absolute', top: 0, left: 0, width: '100%', height: '100%', }, }, }) interface Props extends WithStyles { job: OffChainReporting } export const OcrJobRow = withStyles(styles)(({ job, classes }: Props) => { return ( {job.attributes.name || job.id} {job.attributes.name && ( <>
{job.id} )}
{job.attributes.offChainReportingOracleSpec.createdAt} Off-chain reporting n/a
) })