-
-
Notifications
You must be signed in to change notification settings - Fork 49.7k
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
fix: Change type of Popconfirm props: okButtonProps to ButtonProps #29928
fix: Change type of Popconfirm props: okButtonProps to ButtonProps #29928
Conversation
According to the Popconfirm API docs the type of the type of the props okButtonProps and cancelButtonProps is ButtonProps In the actual code however it is was typed as NativeButtonProps causing type errors when using ButtonProps like 'href'
Codecov Report
@@ Coverage Diff @@
## master #29928 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 397 397
Lines 7666 7519 -147
Branches 2160 2100 -60
==========================================
- Hits 7666 7519 -147
Continue to review full report at Codecov.
|
CI failed |
No, Some checks were not successful. Pls fix them. |
All tests passing now |
…nt-design#29928) * Change type of Popconfirm props: okButtonProps to ButtonProps According to the Popconfirm API docs the type of the type of the props okButtonProps and cancelButtonProps is ButtonProps In the actual code however it is was typed as NativeButtonProps causing type errors when using ButtonProps like 'href' * fix: Remove unused NativeButtonProps
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
According to the
Popconfirm
API docs the type of the type of the propsokButtonProps
andcancelButtonProps
isButtonProps.
In the actual code however it is was typed asNativeButtonProps
causing type errors when usingButtonProps
likehref
To solve this issue, the types of
okButtonProps
andcancelButtonProps
have been changed toButtonProps
📝 Changelog
☑️ Self Check before Merge