From 22f8a364b281bea87c815f1c1a596e5dbc0dc082 Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Mon, 18 Nov 2024 19:47:53 +0200 Subject: [PATCH] Cleanup --- .../jetpack/extensions/blocks/subscriptions/edit.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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 ) { /> - +