diff --git a/projects/plugins/jetpack/_inc/client/newsletter/email-settings.jsx b/projects/plugins/jetpack/_inc/client/newsletter/email-settings.jsx index c2e2bb75b22f..5e1057b67d13 100644 --- a/projects/plugins/jetpack/_inc/client/newsletter/email-settings.jsx +++ b/projects/plugins/jetpack/_inc/client/newsletter/email-settings.jsx @@ -1,13 +1,12 @@ import { RadioControl, - ToggleControl, getRedirectUrl, Container, Col, Chip, Button as JetpackButton, } from '@automattic/jetpack-components'; -import { ExternalLink } from '@wordpress/components'; +import { ExternalLink, ToggleControl } from '@wordpress/components'; import { createInterpolateElement } from '@wordpress/element'; import { __, sprintf } from '@wordpress/i18n'; import { useCallback, useState } from 'react'; @@ -211,11 +210,11 @@ const EmailSettings = props => { } } > { featuredImageInfo } } onChange={ handleEnableFeaturedImageInEmailToggleChange } className="email-settings__featured-image-toggle" @@ -286,9 +285,9 @@ const EmailSettings = props => { />
{ __( 'Show author avatar on your emails', 'jetpack' ) } @@ -332,9 +331,9 @@ const EmailSettings = props => { />
{ __( 'Show author display name', 'jetpack' ) } @@ -344,9 +343,9 @@ const EmailSettings = props => { /> { __( 'Add the post date', 'jetpack' ) } diff --git a/projects/plugins/jetpack/_inc/client/newsletter/newsletter-categories.jsx b/projects/plugins/jetpack/_inc/client/newsletter/newsletter-categories.jsx index b01c64d9bee8..4e0fb62ea8c0 100644 --- a/projects/plugins/jetpack/_inc/client/newsletter/newsletter-categories.jsx +++ b/projects/plugins/jetpack/_inc/client/newsletter/newsletter-categories.jsx @@ -1,5 +1,5 @@ -import { ToggleControl, getRedirectUrl } from '@automattic/jetpack-components'; -import { ExternalLink } from '@wordpress/components'; +import { getRedirectUrl } from '@automattic/jetpack-components'; +import { ExternalLink, ToggleControl } from '@wordpress/components'; import { createInterpolateElement } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import clsx from 'clsx'; @@ -157,6 +157,7 @@ function NewsletterCategories( props ) {

diff --git a/projects/plugins/jetpack/_inc/client/newsletter/subscriptions-settings.jsx b/projects/plugins/jetpack/_inc/client/newsletter/subscriptions-settings.jsx index 51dff3356ffe..6ef8313c192b 100644 --- a/projects/plugins/jetpack/_inc/client/newsletter/subscriptions-settings.jsx +++ b/projects/plugins/jetpack/_inc/client/newsletter/subscriptions-settings.jsx @@ -1,5 +1,4 @@ -import { ToggleControl } from '@automattic/jetpack-components'; -import { ExternalLink } from '@wordpress/components'; +import { ExternalLink, ToggleControl } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import { addQueryArgs } from '@wordpress/url'; import { useCallback } from 'react'; @@ -33,7 +32,6 @@ import { SUBSCRIPTIONS_MODULE_NAME } from './constants'; function SubscriptionsSettings( props ) { const { unavailableInOfflineMode, - isSavingAnyOption, isStbEnabled, isStcEnabled, isSmEnabled, @@ -164,9 +162,9 @@ function SubscriptionsSettings( props ) { { __( 'Homepage and posts', 'jetpack' ) } @@ -184,9 +182,9 @@ function SubscriptionsSettings( props ) { } /> @@ -203,9 +201,9 @@ function SubscriptionsSettings( props ) { } /> @@ -222,9 +220,9 @@ function SubscriptionsSettings( props ) { } /> @@ -245,11 +243,9 @@ function SubscriptionsSettings( props ) { { __( 'Navigation', 'jetpack' ) } @@ -266,9 +262,9 @@ function SubscriptionsSettings( props ) { } /> @@ -289,9 +285,9 @@ function SubscriptionsSettings( props ) { { __( 'Comments', 'jetpack' ) } @@ -300,9 +296,9 @@ function SubscriptionsSettings( props ) { } /> diff --git a/projects/plugins/jetpack/changelog/issue-48160-migrate-newsletter-toggle b/projects/plugins/jetpack/changelog/issue-48160-migrate-newsletter-toggle new file mode 100644 index 000000000000..5dba2d7e60fa --- /dev/null +++ b/projects/plugins/jetpack/changelog/issue-48160-migrate-newsletter-toggle @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Newsletter: Migrate ToggleControl off @automattic/jetpack-components to @wordpress/components.