♻️ Shorten hook property name

This commit is contained in:
Philipp Stracker 2025-01-23 19:52:17 +01:00
parent 3840352c54
commit fbb4420b80
No known key found for this signature in database
2 changed files with 13 additions and 19 deletions

View file

@ -7,10 +7,8 @@ import OnboardingHeader from '../Components/OnboardingHeader';
import OptionalPaymentMethods from '../Components/OptionalPaymentMethods';
const StepPaymentMethods = ( {} ) => {
const {
areOptionalPaymentMethodsEnabled,
setAreOptionalPaymentMethodsEnabled,
} = OnboardingHooks.useOptionalPaymentMethods();
const { optionalMethods, setOptionalMethods } =
OnboardingHooks.useOptionalPaymentMethods();
return (
<div className="ppcp-r-page-optional-payment-methods">
@ -19,8 +17,8 @@ const StepPaymentMethods = ( {} ) => {
<OptionSelector
multiSelect={ false }
options={ methodChoices }
onChange={ setAreOptionalPaymentMethodsEnabled }
value={ areOptionalPaymentMethodsEnabled }
onChange={ setOptionalMethods }
value={ optionalMethods }
/>
<PricingDescription />