diff --git a/src/components/ItemTable/ItemTable.js b/src/components/ItemTable/ItemTable.js index e547b78..5cfce90 100644 --- a/src/components/ItemTable/ItemTable.js +++ b/src/components/ItemTable/ItemTable.js @@ -12,14 +12,6 @@ export default function ItemTable({ data, rowCanBeSelected }) { const theme = useTheme(); const useStyles = makeStyles({ - // Fully visible for active icons - activeSortIcon: { - opacity: 1, - }, - // Half visible for inactive icons - inactiveSortIcon: { - opacity: 0.2, - }, rowSelected: { backgroundColor: theme.palette.type === 'light' ? theme.palette.primary[100] : theme.palette.primary[600], }, @@ -33,6 +25,12 @@ export default function ItemTable({ data, rowCanBeSelected }) { borderLeftStyle: "solid", borderColor: theme.palette.type === "light" ? theme.palette.grey[300] : theme.palette.grey[500] }, + tableMargin: { + marginTop: theme.spacing(2) + }, + tableHeaderMargin: { + marginBottom: theme.spacing(1) + } }); const classes = useStyles(); @@ -73,18 +71,13 @@ export default function ItemTable({ data, rowCanBeSelected }) { return ( - +
{headerGroups.map(headerGroup => ( {headerGroup.headers.map(column => ( - + {column.render("Filter")} @@ -112,6 +105,7 @@ export default function ItemTable({ data, rowCanBeSelected }) { ))} + {rows.map((row, i) => { prepareRow(row); @@ -139,6 +133,7 @@ export default function ItemTable({ data, rowCanBeSelected }) { ); })} +
);