Declare types on settings
This commit is contained in:
parent
be900aa25c
commit
ee078c677b
5 changed files with 36 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
import './SearchForm.scss';
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import AddButton from '../ui/AddButton';
|
||||
import DeleteButton from '../ui/DeleteButton';
|
||||
|
||||
|
@ -75,4 +76,13 @@ class SearchForm extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
SearchForm.propTypes = {
|
||||
value: PropTypes.shape({
|
||||
default: PropTypes.string,
|
||||
engines: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.string)),
|
||||
}),
|
||||
onChange: PropTypes.func,
|
||||
|
||||
};
|
||||
|
||||
export default SearchForm;
|
||||
|
|
Reference in a new issue