Browse Source

update Description propTypes

pull/738/merge
afc163 8 years ago
parent
commit
320aa8e89d
  1. 10
      src/components/DescriptionList/Description.js

10
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;

Loading…
Cancel
Save