|
@ -18,6 +18,8 @@ import Fade from "@material-ui/core/Fade"; |
|
|
import Modal from "@material-ui/core/Modal"; |
|
|
import Modal from "@material-ui/core/Modal"; |
|
|
import {Link} from "react-router-dom"; |
|
|
import {Link} from "react-router-dom"; |
|
|
import Button from "@material-ui/core/Button"; |
|
|
import Button from "@material-ui/core/Button"; |
|
|
|
|
|
import KeyboardArrowDownIcon from '@material-ui/icons/KeyboardArrowDown'; |
|
|
|
|
|
import KeyboardArrowUpIcon from '@material-ui/icons/KeyboardArrowUp'; |
|
|
|
|
|
|
|
|
const useRowStyles = makeStyles({ |
|
|
const useRowStyles = makeStyles({ |
|
|
root: { |
|
|
root: { |
|
@ -35,10 +37,10 @@ function Row(props) { |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<React.Fragment> |
|
|
<React.Fragment> |
|
|
<TableRow className={classes.root}> |
|
|
<TableRow className={classes.root} onClick={() => setOpen(!open)}> |
|
|
<TableCell> |
|
|
<TableCell> |
|
|
<IconButton aria-label="expand row" size="small" onClick={() => setOpen(!open)}> |
|
|
<IconButton aria-label="expand row" size="small"> |
|
|
{open ? '▲' : '▼'} |
|
|
{open ? <KeyboardArrowUpIcon /> : <KeyboardArrowDownIcon />} |
|
|
</IconButton> |
|
|
</IconButton> |
|
|
</TableCell> |
|
|
</TableCell> |
|
|
<TableCell component="th" scope="row"> |
|
|
<TableCell component="th" scope="row"> |
|
|