Skip to content

Commit

Permalink
Merge pull request #1030 from cozy/children-not-required
Browse files Browse the repository at this point in the history
fix: Do not require children for Text
  • Loading branch information
ptbrowne authored Jun 5, 2019
2 parents 8b759c3 + e5827eb commit 23fea76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/Text/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const Caption = ({ className, ...restProps }) => (

// Props
const commonProps = {
children: PropTypes.node.isRequired,
children: PropTypes.node,
className: PropTypes.string,
tag: PropTypes.string,
ellipsis: PropTypes.bool
Expand Down

0 comments on commit 23fea76

Please sign in to comment.