-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5494746
commit 939aca0
Showing
10 changed files
with
308 additions
and
86 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import { ErrorMessage, Field } from "formik" | ||
import { FormGroupProps } from "../../ts/interfaces" | ||
|
||
export default function FormGroupInput({ | ||
type, | ||
label, | ||
placeholder, | ||
minLength, | ||
maxLength, | ||
required | ||
maxLength | ||
}: FormGroupProps) { | ||
return ( | ||
<div className="form-group"> | ||
<label className="form__label" htmlFor={type}> | ||
{label} | ||
</label> | ||
<input | ||
<Field | ||
className="form__input" | ||
type={type} | ||
name={type} | ||
id={type} | ||
placeholder={placeholder} | ||
required={required} | ||
minLength={minLength} | ||
maxLength={maxLength} | ||
/> | ||
<ErrorMessage name={type} /> | ||
</div> | ||
) | ||
} |
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
Oops, something went wrong.