Skip to content

Commit aad2ad3

Browse files
Ali OgailiAllenFang
authored andcommitted
Fix eslint errors.
1 parent 9190cfc commit aad2ad3

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

packages/react-bootstrap-table2/src/filters-cell.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import PropTypes from 'prop-types';
33
import _ from './utils';
44

55
const FiltersCell = (props) => {
6-
const { index, column, onExternalFilter, currFilters, onFilter } = props;
6+
const {
7+
index, column, onExternalFilter,
8+
currFilters, onFilter
9+
} = props;
710
const { filterRenderer, filter } = column;
811
let filterElm;
912
const cellAttrs = {};
@@ -32,10 +35,14 @@ const FiltersCell = (props) => {
3235

3336
FiltersCell.propTypes = {
3437
index: PropTypes.number.isRequired,
35-
column: PropTypes.object,
38+
column: PropTypes.object.isRequired,
39+
currFilters: PropTypes.object.isRequired,
3640
onFilter: PropTypes.func,
37-
currFilters: PropTypes.object,
3841
onExternalFilter: PropTypes.func
3942
};
4043

44+
FiltersCell.defaultProps = {
45+
onFilter: () => { },
46+
onExternalFilter: () => { }
47+
}
4148
export default FiltersCell;

0 commit comments

Comments
 (0)