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,
dataset: PropTypes.shape({}).isRequired,
selectedId: PropTypes.string,
Filter: PropTypes.element,
List: PropTypes.element,
Title: PropTypes.element,
Link: PropTypes.element,
Leaf: PropTypes.element,
Head: PropTypes.element,
Section: PropTypes.element,
Message: PropTypes.element,
Filter: PropTypes.elementType,
List: PropTypes.elementType,
Title: PropTypes.elementType,
Link: PropTypes.elementType,
Leaf: PropTypes.elementType,
Head: PropTypes.elementType,
Section: PropTypes.elementType,
Message: PropTypes.elementType,
};
TreeState.defaultProps = {
selectedId: null,