From 86b3395b7b1f127d155f9d9da4896de04699bbf0 Mon Sep 17 00:00:00 2001 From: wrigh393 Date: Mon, 1 Feb 2021 10:21:31 -0500 Subject: [PATCH] Minor formatting changes --- src/components/ItemTable/ItemTable.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/ItemTable/ItemTable.js b/src/components/ItemTable/ItemTable.js index 22250e1..9fad0f0 100644 --- a/src/components/ItemTable/ItemTable.js +++ b/src/components/ItemTable/ItemTable.js @@ -9,9 +9,9 @@ import { ArrowDownward, ArrowUpward } from "@material-ui/icons"; export default function ItemTable({ data, rowCanBeSelected }) { - const [selectedRow, setSelectedRow] = useState({ queue: null, number: null}); + const [selectedRow, setSelectedRow] = useState({ queue: null, number: null }); - const theme = useTheme(); + const theme = useTheme(); const useStyles = makeStyles({ // Fully visible for active icons activeSortIcon: { @@ -22,10 +22,10 @@ export default function ItemTable({ data, rowCanBeSelected }) { opacity: 0.2, }, hoverBackgroundColor: { - "&.MuiTableRow-root.MuiTableRow-hover:hover":{ + "&.MuiTableRow-root.MuiTableRow-hover:hover": { backgroundColor: theme.palette.primary[200], - - }, + + }, }, rowSelected: { backgroundColor: theme.palette.type === 'light' ? theme.palette.primary[100] : theme.palette.primary[600], @@ -140,11 +140,11 @@ export default function ItemTable({ data, rowCanBeSelected }) { // This functionality should be achieved by using the selected prop and // overriding the selected class but this applied the secondary color at 0.08% opacity. // Overridding the root class is a workaround. - classes={{ root: (isSelected && rowCanBeSelected) ? classes.rowSelected : classes.bandedRows , hover: classes.hoverBackgroundColor}} + classes={{ root: (isSelected && rowCanBeSelected) ? classes.rowSelected : classes.bandedRows, hover: classes.hoverBackgroundColor }} {...row.getRowProps()} > {row.cells.map(cell => ( -