mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
🎨 Minor code adjustments
This commit is contained in:
parent
508c9e85c4
commit
78386cb0a3
2 changed files with 6 additions and 6 deletions
|
@ -5,9 +5,9 @@ const RadioButton = ( {
|
|||
name,
|
||||
value,
|
||||
currentValue,
|
||||
checked = null,
|
||||
checked = null, // alternative to currentValue.
|
||||
onChange,
|
||||
handleRdbState,
|
||||
handleRdbState, // deprecated
|
||||
} ) => {
|
||||
const handleChange = useCallback( () => {
|
||||
if ( onChange ) {
|
||||
|
@ -23,11 +23,11 @@ const RadioButton = ( {
|
|||
const radioProps = {
|
||||
className: 'ppcp-r__radio-value',
|
||||
type: 'radio',
|
||||
onChange: handleChange,
|
||||
checked: null === checked ? value === currentValue : checked,
|
||||
id,
|
||||
name,
|
||||
value,
|
||||
onChange: handleChange,
|
||||
checked: null === checked ? value === currentValue : checked,
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
@ -47,20 +47,20 @@ const StepBusiness = ( {} ) => {
|
|||
|
||||
const businessChoices = [
|
||||
{
|
||||
value: BUSINESS_TYPES.BUSINESS,
|
||||
title: __( 'Business', 'woocommerce-paypal-payments' ),
|
||||
description: __(
|
||||
'Recommended for individuals and organizations that primarily use PayPal to sell goods or services or receive donations, even if your business is not incorporated.',
|
||||
'woocommerce-paypal-payments'
|
||||
),
|
||||
value: BUSINESS_TYPES.BUSINESS,
|
||||
},
|
||||
{
|
||||
value: BUSINESS_TYPES.CASUAL_SELLER,
|
||||
title: __( 'Personal Account', 'woocommerce-paypal-payments' ),
|
||||
description: __(
|
||||
'Ideal for those who primarily make purchases or send personal transactions to family and friends.',
|
||||
'woocommerce-paypal-payments'
|
||||
),
|
||||
value: BUSINESS_TYPES.CASUAL_SELLER,
|
||||
},
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue