Skip to content

Commit

Permalink
Deleted duplicate columns in ItemTable
Browse files Browse the repository at this point in the history
  • Loading branch information
wrigh393 committed Mar 17, 2021
1 parent 14ed84d commit 493ad74
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/ItemTable/ItemTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function ItemTable({ data, rowCanBeSelected }) {
const useStyles = makeStyles({
hoverBackgroundColor: {
"&:hover": {
// The !important is placed here to enforce CSS specificity.
// The !important is placed here to enforce CSS specificity.
// See: https://material-ui.com/styles/advanced/#css-injection-order
backgroundColor: `${theme.palette.primary[200]} !important`,
},
Expand Down Expand Up @@ -52,10 +52,7 @@ export default function ItemTable({ data, rowCanBeSelected }) {
{ Header: 'Department', accessor: 'department' },
{ Header: 'Building', accessor: 'building' },
{ Header: 'Date Received', accessor: 'dateReceived', sortInverted: true, Cell: ({ value }) => <RelativeTime value={value} /> },
{ Header: 'Last Updated', accessor: 'lastUpdated', },
{ Header: 'Department', accessor: 'department' },
{ Header: 'Building', accessor: 'building' },
{ Header: 'Date Received', accessor: 'dateReceived', },

], []);
const tableInstance = useTable(
{
Expand Down Expand Up @@ -148,7 +145,7 @@ export default function ItemTable({ data, rowCanBeSelected }) {
history.push(`/${row.original.queue}/${row.original.number}`);
setSelectedRow({ queue: row.original.queue, number: row.original.number });
}}
// This functionality should be achieved by using the selected prop and
// 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={{
Expand Down

0 comments on commit 493ad74

Please sign in to comment.