🎨 Minor code adjustments

This commit is contained in:
Philipp Stracker 2025-01-23 19:40:43 +01:00
parent 508c9e85c4
commit 78386cb0a3
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View file

@ -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 (

View file

@ -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,
},
];