Import source: src/components/CenterPanel/forms/TextForm
Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality.
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
import { useQR } from '../../../context/QRContext';
|
||||||
|
import { TextareaInput } from '../../ui/TextareaInput';
|
||||||
|
|
||||||
|
export function TextForm() {
|
||||||
|
const { state, dispatch } = useQR();
|
||||||
|
return (
|
||||||
|
<TextareaInput
|
||||||
|
label="Your Text"
|
||||||
|
value={state.formData.text.text}
|
||||||
|
onChange={(v) => dispatch({ type: 'SET_FORM_FIELD', qrType: 'text', field: 'text', value: v })}
|
||||||
|
placeholder="Enter any text..."
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user