From 50378a0760c440e9422f1678e9c18940414af1d1 Mon Sep 17 00:00:00 2001 From: Grzegorz Chudzinski-Pawlowski <112354940+grzegorz-cp@users.noreply.github.com> Date: Tue, 1 Oct 2024 08:28:27 +1000 Subject: [PATCH] Settings: Renaming const and its value --- .../jetpack/_inc/client/components/settings-card/index.jsx | 6 +++--- projects/plugins/jetpack/_inc/client/lib/plans/constants.js | 4 ++-- .../jetpack/_inc/client/newsletter/email-settings.jsx | 4 ++-- .../jetpack/_inc/client/newsletter/messages-setting.jsx | 4 ++-- .../_inc/client/newsletter/newsletter-categories.jsx | 4 ++-- .../plugins/jetpack/_inc/client/newsletter/newsletter.jsx | 4 ++-- .../jetpack/_inc/client/newsletter/paid-newsletter.jsx | 4 ++-- .../_inc/client/newsletter/subscriptions-settings.jsx | 4 ++-- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/projects/plugins/jetpack/_inc/client/components/settings-card/index.jsx b/projects/plugins/jetpack/_inc/client/components/settings-card/index.jsx index ab89d5a0e5377..83c0abf8edd19 100644 --- a/projects/plugins/jetpack/_inc/client/components/settings-card/index.jsx +++ b/projects/plugins/jetpack/_inc/client/components/settings-card/index.jsx @@ -13,7 +13,7 @@ import { FEATURE_SPAM_AKISMET_PLUS, FEATURE_SEARCH_JETPACK, FEATURE_SIMPLE_PAYMENTS_JETPACK, - FEATURE_EMAIL_SUBSCRIPTION_JETPACK, + FEATURE_NEWSLETTER_JETPACK, getJetpackProductUpsellByFeature, } from 'lib/plans/constants'; import { get, includes } from 'lodash'; @@ -324,7 +324,7 @@ export const SettingsCard = inprops => { /> ); - case FEATURE_EMAIL_SUBSCRIPTION_JETPACK: + case FEATURE_NEWSLETTER_JETPACK: if ( props.hasConnectedOwner ) { return ''; } @@ -333,7 +333,7 @@ export const SettingsCard = inprops => { { { ...props } header={ __( 'Email configuration', 'jetpack' ) } hideButton - feature={ FEATURE_EMAIL_SUBSCRIPTION_JETPACK } + feature={ FEATURE_NEWSLETTER_JETPACK } module={ SUBSCRIPTIONS_MODULE_NAME } saveDisabled={ disabled } > diff --git a/projects/plugins/jetpack/_inc/client/newsletter/messages-setting.jsx b/projects/plugins/jetpack/_inc/client/newsletter/messages-setting.jsx index 96fc73e2ee65f..b8a67fcd2450c 100644 --- a/projects/plugins/jetpack/_inc/client/newsletter/messages-setting.jsx +++ b/projects/plugins/jetpack/_inc/client/newsletter/messages-setting.jsx @@ -3,7 +3,7 @@ import { FormLabel } from 'components/forms'; import { withModuleSettingsFormHelpers } from 'components/module-settings/with-module-settings-form-helpers'; import SettingsCard from 'components/settings-card'; import SettingsGroup from 'components/settings-group'; -import { FEATURE_EMAIL_SUBSCRIPTION_JETPACK } from 'lib/plans/constants'; +import { FEATURE_NEWSLETTER_JETPACK } from 'lib/plans/constants'; import React, { useCallback } from 'react'; import { connect } from 'react-redux'; import { isUnavailableInOfflineMode, isUnavailableInSiteConnectionMode } from 'state/connection'; @@ -44,7 +44,7 @@ const MessagesSetting = props => { diff --git a/projects/plugins/jetpack/_inc/client/newsletter/newsletter-categories.jsx b/projects/plugins/jetpack/_inc/client/newsletter/newsletter-categories.jsx index ae980c5e5634a..608c1b7e92a24 100644 --- a/projects/plugins/jetpack/_inc/client/newsletter/newsletter-categories.jsx +++ b/projects/plugins/jetpack/_inc/client/newsletter/newsletter-categories.jsx @@ -3,7 +3,7 @@ import { __ } from '@wordpress/i18n'; import clsx from 'clsx'; import SettingsCard from 'components/settings-card'; import SettingsGroup from 'components/settings-group'; -import { FEATURE_EMAIL_SUBSCRIPTION_JETPACK } from 'lib/plans/constants'; +import { FEATURE_NEWSLETTER_JETPACK } from 'lib/plans/constants'; import React, { useCallback, useMemo } from 'react'; import { connect } from 'react-redux'; import { @@ -92,7 +92,7 @@ function NewsletterCategories( props ) { diff --git a/projects/plugins/jetpack/_inc/client/newsletter/newsletter.jsx b/projects/plugins/jetpack/_inc/client/newsletter/newsletter.jsx index 0f42e389d0e7a..7ac42e80384fa 100644 --- a/projects/plugins/jetpack/_inc/client/newsletter/newsletter.jsx +++ b/projects/plugins/jetpack/_inc/client/newsletter/newsletter.jsx @@ -6,7 +6,7 @@ import { ModuleToggle } from 'components/module-toggle'; import SettingsCard from 'components/settings-card'; import SettingsGroup from 'components/settings-group'; import analytics from 'lib/analytics'; -import { FEATURE_EMAIL_SUBSCRIPTION_JETPACK } from 'lib/plans/constants'; +import { FEATURE_NEWSLETTER_JETPACK } from 'lib/plans/constants'; import React from 'react'; import { connect } from 'react-redux'; import { isCurrentUserLinked, isUnavailableInOfflineMode, isOfflineMode } from 'state/connection'; @@ -61,7 +61,7 @@ function Newsletter( props ) { { ...props } header={ __( 'Newsletter', 'jetpack' ) } hideButton - feature={ FEATURE_EMAIL_SUBSCRIPTION_JETPACK } + feature={ FEATURE_NEWSLETTER_JETPACK } module={ SUBSCRIPTIONS_MODULE_NAME } >