Skip to content

Commit

Permalink
Merge pull request #98 from ECN/add-column-border-to-itemtable
Browse files Browse the repository at this point in the history
Add column borders to ItemTable
  • Loading branch information
campb303 authored Oct 29, 2020
2 parents 3398a82 + 78d002e commit e3f6b53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ItemTable/ItemTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export default function ItemTable({ data, onRowClick }) {
backgroundColor: theme.palette.type === 'light' ? theme.palette.grey[50] : theme.palette.grey[700],
},
},
columnBorders: {
borderLeft: `1px solid ${theme.palette.grey[300]}`
}
});
const classes = useStyles();

Expand Down Expand Up @@ -100,7 +103,7 @@ export default function ItemTable({ data, onRowClick }) {
onClick={() => history.push(`/${row.original.queue}/${row.original.number}`)}
className={classes.bandedRows} {...row.getRowProps()}>
{row.cells.map(cell => (
<TableCell {...cell.getCellProps()}>
<TableCell classes={{ root: classes.columnBorders }} {...cell.getCellProps()}>
{cell.render("Cell")}
</TableCell>
))}
Expand Down

0 comments on commit e3f6b53

Please sign in to comment.