mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
♻️ Remove description-location-logic
This commit is contained in:
parent
f90ab656f5
commit
7a71ff3657
4 changed files with 16 additions and 17 deletions
|
@ -1,8 +1,13 @@
|
|||
import { TextControl } from '@wordpress/components';
|
||||
|
||||
import { Action } from '../Elements';
|
||||
import { Action, Description } from '../Elements';
|
||||
|
||||
const ControlTextInput = ( { value, onChange, placeholder = '' } ) => {
|
||||
const ControlTextInput = ( {
|
||||
value,
|
||||
description,
|
||||
onChange,
|
||||
placeholder = '',
|
||||
} ) => {
|
||||
return (
|
||||
<Action>
|
||||
<TextControl
|
||||
|
@ -11,6 +16,7 @@ const ControlTextInput = ( { value, onChange, placeholder = '' } ) => {
|
|||
value={ value }
|
||||
onChange={ onChange }
|
||||
/>
|
||||
<Description>{ description }</Description>
|
||||
</Action>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue