♻️ Remove description-location-logic

This commit is contained in:
Philipp Stracker 2025-01-22 15:48:11 +01:00
parent f90ab656f5
commit 7a71ff3657
No known key found for this signature in database
4 changed files with 16 additions and 17 deletions

View file

@ -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>
);
};