Commit 320aa8e8 authored by afc163's avatar afc163

update Description propTypes

parent b97547ef
......@@ -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;
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