Skip to content

Commit e0cec47

Browse files
committed
Use whitelist and blacklist arrays as props instead of a filter object.
Related to #2.
1 parent c6b53a1 commit e0cec47

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/FilterMonitor.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ export default class FilterMonitor extends Component {
55

66
static propTypes = {
77
children: PropTypes.element,
8-
filter: PropTypes.shape({
9-
whitelist: PropTypes.array,
10-
blacklist: PropTypes.array
11-
})
8+
whitelist: PropTypes.array,
9+
blacklist: PropTypes.array
1210
};
1311

1412
render() {
15-
const { filter, children, ...childProps } = this.props;
13+
const { whitelist, blacklist, children, ...childProps } = this.props;
1614
return cloneElement(children, childProps);
1715
}
1816
}

0 commit comments

Comments
 (0)