Last active
September 10, 2020 07:27
-
-
Save nicolasleal570/00a9484c3139b7ce1beafbfc896a0e42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { SetForm, NavigationProps } from "react-hooks-helper"; | |
import { FormData } from "./StepperForm"; | |
import TextField from "./TextField"; | |
import StepButtons from "./StepButtons"; | |
interface Props { | |
formData: FormData; | |
setForm: SetForm; | |
navigation: NavigationProps; | |
} | |
export default function ({ setForm, formData, navigation }: Props) { | |
const { phone, address } = formData; | |
return ( | |
<> | |
<h2 className="Title">Contact Info</h2> | |
<TextField | |
type="tel" | |
placeholder="+584245896324" | |
labelText="Enter your Phone" | |
name="phone" | |
id="phone" | |
value={phone} | |
onChange={setForm} | |
/> | |
<TextField | |
type="text" | |
placeholder="Caracas, Venezuela" | |
labelText="Enter your Address" | |
name="address" | |
id="address" | |
value={address} | |
onChange={setForm} | |
/> | |
<StepButtons navigation={navigation} withPrevious /> | |
</> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment