mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Make the toggle state name a bit more descriptive
This commit is contained in:
parent
f32f30ef0a
commit
44e79f62c5
1 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@ import PaymentMethodIcon from '../PaymentMethodIcon';
|
|||
import data from '../../../utils/data';
|
||||
|
||||
const PaymentMethodItemBlock = ( props ) => {
|
||||
const [ isChecked, setIsChecked ] = useState( false );
|
||||
const [ toggleIsChecked, setToggleIsChecked ] = useState( false );
|
||||
const [ modalIsVisible, setModalIsVisible ] = useState( false );
|
||||
const Modal = props?.modal;
|
||||
|
||||
|
@ -28,8 +28,8 @@ const PaymentMethodItemBlock = ( props ) => {
|
|||
<div className="ppcp-r-settings-block__payment-methods__item__footer">
|
||||
<ToggleControl
|
||||
__nextHasNoMarginBottom={ true }
|
||||
checked={ isChecked }
|
||||
onChange={ setIsChecked }
|
||||
checked={ toggleIsChecked }
|
||||
onChange={ setToggleIsChecked }
|
||||
/>
|
||||
{ Modal && (
|
||||
<div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue