Skip to content

Commit

Permalink
fix(title): children prop allows node instead of string (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
david50407 committed Jul 15, 2021
1 parent 49a1b1e commit 8290768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Title.tsx
Expand Up @@ -30,7 +30,7 @@ const DialogTitle: React.FC<DialogTitleProps> = (props) => {
DialogTitle.propTypes = {
...TextPropTypes,
style: PropTypes.any,
children: PropTypes.string.isRequired,
children: PropTypes.node.isRequired,
};

DialogTitle.displayName = "DialogTitle";
Expand Down

0 comments on commit 8290768

Please sign in to comment.