mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
🎨 Use new callback method props
This commit is contained in:
parent
31856def94
commit
294bd5c67b
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ const InputField = ( { value, onChange, isRadio, isSelected } ) => {
|
|||
return (
|
||||
<PayPalRdb
|
||||
value={ value }
|
||||
handleRdbState={ onChange }
|
||||
onChange={ onChange }
|
||||
checked={ isSelected }
|
||||
/>
|
||||
);
|
||||
|
@ -93,7 +93,7 @@ const InputField = ( { value, onChange, isRadio, isSelected } ) => {
|
|||
return (
|
||||
<PayPalCheckbox
|
||||
value={ value }
|
||||
changeCallback={ onChange }
|
||||
onChange={ onChange }
|
||||
checked={ isSelected }
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue