diff --git a/projects/plugins/jetpack/extensions/blocks/subscriptions/edit.js b/projects/plugins/jetpack/extensions/blocks/subscriptions/edit.js index ea1e9c67588f7..21d916cac3231 100644 --- a/projects/plugins/jetpack/extensions/blocks/subscriptions/edit.js +++ b/projects/plugins/jetpack/extensions/blocks/subscriptions/edit.js @@ -5,7 +5,6 @@ import { RichText, withColors, withFontSizes, - useBlockProps, __experimentalUseGradient as useGradient, // eslint-disable-line @wordpress/no-unsafe-wp-apis } from '@wordpress/block-editor'; import { TextControl, Toolbar, withFallbackStyles } from '@wordpress/components'; @@ -71,8 +70,6 @@ export function SubscriptionEdit( props ) { hasTierPlans, } = props; - const blockProps = useBlockProps(); - const validatedAttributes = getValidatedAttributes( metadata.attributes, attributes ); if ( ! isEqual( validatedAttributes, attributes ) ) { setAttributes( validatedAttributes ); @@ -213,12 +210,6 @@ export function SubscriptionEdit( props ) { setBorderColor( buttonBackgroundColor.color ); }, [ buttonBackgroundColor, previousButtonBackgroundColor, borderColor, setBorderColor ] ); - const paidPlanLabel = paidPlanButtonText( hasTierPlans ); - - if ( isLoadingModules ) { - return ; - } - return ( <> @@ -251,7 +242,7 @@ export function SubscriptionEdit( props ) { /> - +