Skip to content

Commit

Permalink
Remove unused backgroundColor prop
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Jan 21, 2021
1 parent 0c3f1bb commit 813438a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/components/ItemTableCell/ItemTableCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import PropTypes from "prop-types";
import { makeStyles, TableCell, useTheme } from '@material-ui/core'

export default function ItemTableCell({ backgroundColor, children, TableCellProps }) {
export default function ItemTableCell({ children, TableCellProps }) {
const theme = useTheme();
const useStyles = makeStyles({
columnBorders: {
Expand All @@ -16,7 +16,6 @@ export default function ItemTableCell({ backgroundColor, children, TableCellProp
const classes = useStyles();
return (
<TableCell
style={{ backgroundColor: backgroundColor }}
classes={{ root: classes.columnBorders }}
{...TableCellProps}
>
Expand All @@ -26,17 +25,13 @@ export default function ItemTableCell({ backgroundColor, children, TableCellProp
}

ItemTableCell.propTypes = {
/** Sets background color*/
"backgroundColor": PropTypes.string,
/** Child object passed to display cell data. */
"children": PropTypes.object,
/** Props applied to the TableCell component. */
"TableCellProps": PropTypes.object

};

ItemTableCell.defaultProps = {
"reactTableProps": {},
"backgroundColor": "",
"children": {},
"TableCellProps": {},
};

0 comments on commit 813438a

Please sign in to comment.