-
Notifications
You must be signed in to change notification settings - Fork 219
Remove propTypes definitions from Reviews By Product #9692
Remove propTypes definitions from Reviews By Product #9692
Conversation
Hi @nielslange this PR following ts errors will be flagged:
If there are any other approach/method i can try please let me know I'll update the code. I tried resolving them but no luck ended up in a rabbit hole and changed multiple files but this goes to other module as well so I reverted my changes |
Thanks for reaching out, @hritikchaudhary, and letting me know that you'll address that TS error in #9537.
@gigitux Do you see how to address the second TS error @hritikchaudhary mentioned in #9692 (comment)? I looked into it, but could only came up with the following fix.
However, this fix does not look elegant to me. I'm excited to hearing your thoughts on 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.
Thanks for working on this, @hritikchaudhary. Below, I left some feedback regarding moving inline TS definitions into the corresponding component. I wonder what your thoughts are on that.
assets/js/blocks/reviews/reviews-by-product/no-reviews-placeholder.tsx
Outdated
Show resolved
Hide resolved
I tried this yesterday, but it gives a different error in ErrorPlaceholder of no-reviews-placeholder, as it is expecting ErrorPlaceholderProps and gives the following error |
For the |
Hi Luigi, thanks for the feedback, I'll look into it and push the improved changes soon.. |
Closed this PR due to numerous merge conflicts and #9522 is already fixed in different PR raised #10249 to fix woocommerce/woocommerce#42362 |
Fixes #9522
Fixes woocommerce/woocommerce#42362
Changes in the PR:
Removed propTypes definitions from Reviews By Category.
Testing
Automated Tests
User Facing Testing
WooCommerce Visibility