diff --git a/projects/plugins/jetpack/changelog/remove-recurring-payments-block-icon-wrapper b/projects/plugins/jetpack/changelog/remove-recurring-payments-block-icon-wrapper new file mode 100644 index 0000000000000..415ab77e3d7df --- /dev/null +++ b/projects/plugins/jetpack/changelog/remove-recurring-payments-block-icon-wrapper @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Payments Block: remove wrapper around icons. diff --git a/projects/plugins/jetpack/extensions/blocks/recurring-payments/edit.jsx b/projects/plugins/jetpack/extensions/blocks/recurring-payments/edit.jsx index 982f6f50846da..b40e907eac7fd 100644 --- a/projects/plugins/jetpack/extensions/blocks/recurring-payments/edit.jsx +++ b/projects/plugins/jetpack/extensions/blocks/recurring-payments/edit.jsx @@ -16,7 +16,7 @@ import { withNotices, SelectControl, } from '@wordpress/components'; -import { InspectorControls, InnerBlocks, BlockIcon, BlockControls } from '@wordpress/block-editor'; +import { InspectorControls, InnerBlocks, BlockControls } from '@wordpress/block-editor'; import { Component } from '@wordpress/element'; import { applyFilters } from '@wordpress/hooks'; @@ -378,7 +378,7 @@ export class MembershipsButtonEdit extends Component { { ! this.hasUpgradeNudge && this.state.shouldUpgrade && (
} + icon={ icon } label={ __( 'Payments', 'jetpack' ) } notices={ notices } instructions={ __( @@ -406,7 +406,7 @@ export class MembershipsButtonEdit extends Component { { ( connected === API_STATE_LOADING || this.state.addingMembershipAmount === PRODUCT_FORM_SUBMITTED ) && ! this.props.attributes.planId && ( - } notices={ notices }> + ) } @@ -415,11 +415,7 @@ export class MembershipsButtonEdit extends Component { connected === API_STATE_CONNECTED && products.length === 0 && (
- } - label={ __( 'Payments', 'jetpack' ) } - notices={ notices } - > +

{ __( 'To use this block, first add at least one payment plan.', 'jetpack' ) } @@ -436,11 +432,7 @@ export class MembershipsButtonEdit extends Component { connected === API_STATE_CONNECTED && products.length > 0 && (

- } - label={ __( 'Payments', 'jetpack' ) } - notices={ notices } - > +

{ __(