mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +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,24 @@
|
|||
import { TextControl } from '@wordpress/components';
|
||||
|
||||
import { Action, Description } from '../Elements';
|
||||
|
||||
const ControlTextInput = ( {
|
||||
value,
|
||||
description,
|
||||
onChange,
|
||||
placeholder = '',
|
||||
} ) => {
|
||||
return (
|
||||
<Action>
|
||||
<TextControl
|
||||
className="ppcp-r-vertical-text-control"
|
||||
placeholder={ placeholder }
|
||||
value={ value }
|
||||
onChange={ onChange }
|
||||
/>
|
||||
<Description>{ description }</Description>
|
||||
</Action>
|
||||
);
|
||||
};
|
||||
|
||||
export default ControlTextInput;
|
Loading…
Add table
Add a link
Reference in a new issue