fix: change propTypes to elementType

This commit is contained in:
lonyele 2019-07-13 14:20:13 +09:00
parent 41a149d6d2
commit cf7c95e94d

View File

@ -392,14 +392,14 @@ TreeState.propTypes = {
prefix: PropTypes.string.isRequired, prefix: PropTypes.string.isRequired,
dataset: PropTypes.shape({}).isRequired, dataset: PropTypes.shape({}).isRequired,
selectedId: PropTypes.string, selectedId: PropTypes.string,
Filter: PropTypes.element, Filter: PropTypes.elementType,
List: PropTypes.element, List: PropTypes.elementType,
Title: PropTypes.element, Title: PropTypes.elementType,
Link: PropTypes.element, Link: PropTypes.elementType,
Leaf: PropTypes.element, Leaf: PropTypes.elementType,
Head: PropTypes.element, Head: PropTypes.elementType,
Section: PropTypes.element, Section: PropTypes.elementType,
Message: PropTypes.element, Message: PropTypes.elementType,
}; };
TreeState.defaultProps = { TreeState.defaultProps = {
selectedId: null, selectedId: null,