Specify default props

This commit is contained in:
Shin'ya Ueoka 2019-04-30 09:15:58 +09:00
parent 808344eecf
commit fce2434dcd
4 changed files with 8 additions and 19 deletions
src/settings/components/form

View file

@ -25,10 +25,6 @@ class BlacklistForm extends React.Component {
}
bindValue(e) {
if (!this.props.onChange) {
return;
}
let name = e.target.name;
let index = e.target.getAttribute('data-index');
let next = this.props.value ? this.props.value.slice() : [];
@ -52,6 +48,7 @@ BlacklistForm.propTypes = {
BlacklistForm.defaultProps = {
value: [],
onChange: () => {},
};
export default BlacklistForm;