From 320aa8e89d520223262bfb43ab612f91f310ad6f Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 19 Jan 2018 14:14:44 +0800 Subject: [PATCH] update Description propTypes --- src/components/DescriptionList/Description.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/DescriptionList/Description.js b/src/components/DescriptionList/Description.js index 1061e1a6..e024796e 100644 --- a/src/components/DescriptionList/Description.js +++ b/src/components/DescriptionList/Description.js @@ -17,18 +17,10 @@ const Description = ({ term, column, className, children, ...restProps }) => { Description.defaultProps = { term: '', - children: '', }; Description.propTypes = { - term: PropTypes.oneOfType([ - PropTypes.string, - PropTypes.element, - ]), - children: PropTypes.oneOfType([ - PropTypes.string, - PropTypes.element, - ]), + term: PropTypes.node, }; export default Description; -- GitLab