-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Update <Confirm>
to accept a React node as confirmTitle
or confirmContent
#9115
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.
Nice! Thanks!
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.
Other than that it looks good, thanks 👍
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
confirmTitle
or confirmContent
in buttons with a confirmation dialog
confirmTitle
or confirmContent
in buttons with a confirmation dialog<Confirm>
to accept a React node as confirmTitle
or confirmContent
All Buttons with confirmation Dialog for
confirmTitle
prop accepts onlystring
type, which make not possible for customization.In this PR I changed type to
React.ReactNode
, also I fixed PropTypes value forconfirmContent
as it was conflicted with TS types and errored in App console.This PR resolves these issues: #9113, #9105