mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-10 23:42:39 +08:00
🚚 Move settings-controls into new subfolder
This commit is contained in:
parent
b9df4d06a4
commit
7f861c5825
19 changed files with 23 additions and 20 deletions
|
@ -0,0 +1,19 @@
|
|||
import { PayPalRdbWithContent } from '../Fields';
|
||||
import { Action } from '../Elements';
|
||||
|
||||
const ControlRadioGroup = ( { options, value, onChange } ) => (
|
||||
<Action>
|
||||
{ options.map( ( { value: optionValue, label, description } ) => (
|
||||
<PayPalRdbWithContent
|
||||
key={ optionValue }
|
||||
value={ optionValue }
|
||||
currentValue={ value }
|
||||
handleRdbState={ onChange }
|
||||
label={ label }
|
||||
description={ description }
|
||||
/>
|
||||
) ) }
|
||||
</Action>
|
||||
);
|
||||
|
||||
export default ControlRadioGroup;
|
Loading…
Add table
Add a link
Reference in a new issue