fetch landing data

This commit is contained in:
2024-05-11 14:39:59 +03:00
parent c70b0e7236
commit d435ec06be
7 changed files with 142 additions and 59 deletions

View File

@@ -2,13 +2,13 @@ import React from "react";
import { FieldInput, FieldLabel, FieldWrapper } from "./field.style";
export const InputField = ({ id, placeHolder, value, label }) => {
export const InputField = ({ id, placeHolder, value, label, onChange, inputRef }) => {
return (
<FieldWrapper>
<FieldLabel htmlFor={id}>
{label}
</FieldLabel>
<FieldInput id={id} type="text" placeholder={placeHolder} value={value} />
<FieldInput ref={inputRef} id={id} type="text" placeholder={placeHolder} value={value} onChange={onChange} />
</FieldWrapper>
);
};