-
Notifications
You must be signed in to change notification settings - Fork 799
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
Recurring Payments: Remove BlockIcon Wrappers #13324
Conversation
Caution: This PR has changes that must be merged to WordPress.com |
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: September 3, 2019. |
This PR has been marked as stale. This happened because:
No further action is needed. But it's worth checking if this PR has clear testing instructions, is it up to date with master, and it is still valid. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation. |
…yments-block-icon-wrapper
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
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.
I don't see why we couldn't go about that, this simplifies things quite a bit. 🚢
Great news! One last step: head over to your WordPress.com diff, D31984-code, and commit it. Thank you! |
r239320-wpcom |
To be continued in #22590. |
This is arguably coming from a place of ignorance, so please forgive me if I'm missing something obvious, and consider this PR a request-for-comment.
Changes proposed in this Pull Request:
Recurring Payments: Remove
BlockIcon
Wrappers fromicon
props.All of these are passed as an
icon
prop toPlaceholder
components, which accepts a string, orReactElement
. Theicon
we're using here is React element for an SVG:jetpack/extensions/blocks/recurring-payments/index.js
Lines 15 to 22 in ac55ffc
The
BlockIcon
wrapper component is arguably less public -- it's part of the@wordpress/editor
, and I couldn't find any documentation for it. It mostly wraps the component tree that's passed to it in anIcon
component.(To be continued -- maybe we should wrap in
Icon
instead?)After
Is this a new feature or does it add/remove features to an existing part of Jetpack?
Existing part.
Does this pull request change what data or activity we track or use?
No.
Testing instructions: