diff --git a/src/components/Table/Table.js b/src/components/Table/Table.js index 7ca0f4e..38e0f0d 100644 --- a/src/components/Table/Table.js +++ b/src/components/Table/Table.js @@ -36,7 +36,6 @@ const Table = ({ showDefaultFooter, showPagination, total, - paintFreeRowsColor, ...props }) => { const columnsData = Array.isArray(columns) ? columns : []; @@ -117,9 +116,9 @@ const Table = ({ {columnsData.map(header => { const isEmpty = row[header.key] == null || row[header.key] === ''; - const updatRowsStyle = isEmpty ? header.emptyRow : header.tdStyle; + const rowStyle = isEmpty ? header.emptyRow : header.tdStyle; return ( - + {row[header.key]} ); @@ -145,7 +144,6 @@ const Table = ({ }; Table.propTypes = { - paintFreeRowsColor: PropTypes.string, caption: PropTypes.string, columns: PropTypes.arrayOf(PropTypes.shape({})).isRequired, data: PropTypes.arrayOf(PropTypes.shape({})), @@ -170,15 +168,14 @@ Table.defaultProps = { emptyMessage: 'No hay resultados', isLoading: false, name: 'table', - onSearch: () => { }, + onSearch: () => {}, onSort: undefined, paginationStyles: undefined, params: undefined, perPage: 0, showDefaultFooter: true, showPagination: true, - total: 0, - paintFreeRowsColor: undefined + total: 0 }; export default Table;