diff --git a/src/components/CheckoutForm/CustomTextField.jsx b/src/components/CheckoutForm/CustomTextField.jsx index cb635df..353d1a6 100644 --- a/src/components/CheckoutForm/CustomTextField.jsx +++ b/src/components/CheckoutForm/CustomTextField.jsx @@ -1,24 +1,28 @@ -import React from 'react'; -import { useFormContext, Controller } from 'react-hook-form'; -import { TextField, Grid } from '@material-ui/core'; +import React from "react"; +import { TextField, Grid } from "@material-ui/core"; +import { useFormContext, Controller } from "react-hook-form"; -function FormInput({ name, label, required }) { +const FormInput = ({ name, label, required }) => { const { control } = useFormContext(); - const isError = false; return ( ( + + )} /> ); -} +}; export default FormInput;