Commit 320aa8e8 authored by afc163's avatar afc163

update Description propTypes

parent b97547ef
...@@ -17,18 +17,10 @@ const Description = ({ term, column, className, children, ...restProps }) => { ...@@ -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([ term: PropTypes.node,
PropTypes.string,
PropTypes.element,
]),
children: PropTypes.oneOfType([
PropTypes.string,
PropTypes.element,
]),
}; };
export default Description; export default Description;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment