mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
♻️ Shorten hook property name
This commit is contained in:
parent
3840352c54
commit
fbb4420b80
2 changed files with 13 additions and 19 deletions
|
@ -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 />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue