-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Refactor dialog wrapper component #4594
Conversation
a21d1d4
to
af25947
Compare
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 @kravets-levko! 😁
Overall I liked the changes, it's not very different from the promises and it's handy to have the loading state for promises abstracted. One single thing I would review: the onClose
name can be a bit confusing, wdyt about using something else? (e.g: onOk
- the same Antd uses)
I see your point, but there's one thing that may be confusing in this case: there are two methods to close dialog: |
For the dialog commands it does feels better to have |
So you offer to keep |
I actually meant to leave all names as they are 😅, but I'm good with any of those options. |
So okay then, let's keep it as is (does this mean that I'm too lazy? 🤔) I addressed other comments and resolved conflicts - can you please take one more look before I merge it? |
What type of PR is this? (check all applicable)
Description
Also fixed some minor bugs found during working on these changes.
Related Tickets & Documents
Closes #4566