Skip to content

Commit

Permalink
feat: add inspect button in file tab
Browse files Browse the repository at this point in the history
  • Loading branch information
gjgd committed Aug 17, 2020
1 parent d76a76a commit 7e89ca7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/app/src/components/ResultTable.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Box from '@material-ui/core/Box';
import Button from '@material-ui/core/Button';
import Collapse from '@material-ui/core/Collapse';
import IconButton from '@material-ui/core/IconButton';
import Table from '@material-ui/core/Table';
Expand Down Expand Up @@ -53,6 +54,15 @@ function Row(props: { row: any }) {
{row.name}
</TableCell>
<TableCell align="center">{Icon}</TableCell>
<TableCell align="center">
{row.result.ok ? (
<></>
) : (
<Button color="primary" variant="contained" onClick={console.log}>
Inspect
</Button>
)}
</TableCell>
</TableRow>
<TableRow>
<TableCell style={{ paddingBottom: 0, paddingTop: 0 }} colSpan={6}>
Expand Down

0 comments on commit 7e89ca7

Please sign in to comment.