Prechádzať zdrojové kódy

update Description propTypes

afc163 8 rokov pred
rodič
commit
320aa8e89d

+ 1 - 9
src/components/DescriptionList/Description.js

@@ -17,18 +17,10 @@ const Description = ({ term, column, className, children, ...restProps }) => {
 
 
 Description.defaultProps = {
 Description.defaultProps = {
   term: '',
   term: '',
-  children: '',
 };
 };
 
 
 Description.propTypes = {
 Description.propTypes = {
-  term: PropTypes.oneOfType([
-    PropTypes.string,
-    PropTypes.element,
-  ]),
-  children: PropTypes.oneOfType([
-    PropTypes.string,
-    PropTypes.element,
-  ]),
+  term: PropTypes.node,
 };
 };
 
 
 export default Description;
 export default Description;