Explorar o código

update Description propTypes

afc163 %!s(int64=8) %!d(string=hai) anos
pai
achega
320aa8e89d
Modificáronse 1 ficheiros con 1 adicións e 9 borrados
  1. 1 9
      src/components/DescriptionList/Description.js

+ 1 - 9
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;