diff --git a/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepPaymentMethods.js b/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepPaymentMethods.js index 0659c8f06..b099327eb 100644 --- a/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepPaymentMethods.js +++ b/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepPaymentMethods.js @@ -1,71 +1,28 @@ import { __ } from '@wordpress/i18n'; import { CommonHooks, OnboardingHooks } from '../../../../data'; -import SelectBoxWrapper from '../../../ReusableComponents/SelectBoxWrapper'; -import { SelectBox } from '../../../ReusableComponents/Fields'; +import { OptionSelector } from '../../../ReusableComponents/Fields'; import PricingDescription from '../../../ReusableComponents/PricingDescription'; import OnboardingHeader from '../Components/OnboardingHeader'; import OptionalPaymentMethods from '../Components/OptionalPaymentMethods'; -const OPM_RADIO_GROUP_NAME = 'optional-payment-methods'; - const StepPaymentMethods = ( {} ) => { const { areOptionalPaymentMethodsEnabled, setAreOptionalPaymentMethodsEnabled, } = OnboardingHooks.useOptionalPaymentMethods(); - const { storeCountry, storeCurrency } = CommonHooks.useWooSettings(); - - let screenTitle = __( - 'Add optional payment methods to your Checkout', - 'woocommerce-paypal-payments' - ); - - if ( 'US' === storeCountry ) { - screenTitle = __( - 'Add Expanded Checkout for More Ways to Pay', - 'woocommerce-paypal-payments' - ); - } - return (