-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(text): allow to pass intl message instead of children #651
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
title: nonEmptyString, | ||
truncate: PropTypes.bool, | ||
intlMessage: intlMessageShape, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be flipped to the case below. Given there are no children then this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah thanks, good catch!
4b50b10
to
656a49a
Compare
Can you add the new VRT's at the end to make reviewing easier 🙏 |
656a49a
to
bc69eda
Compare
bc69eda
to
11662e1
Compare
@montezume do you want to review/approve the VRT? |
@emmenko 👍 done |
title: nonEmptyString, | ||
truncate: PropTypes.bool, | ||
intlMessage: requiredIf(intlMessageShape, props => !props.children), | ||
children: requiredIf(PropTypes.node, props => !props.intlMessage), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Fixes #637