fetch landing data
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user