initial setup, formik, fields, layout

This commit is contained in:
Jesus Vasquez 2024-03-03 22:09:33 -05:00
parent 765cc0c7cf
commit b23d706180
16 changed files with 578 additions and 53 deletions

10
components/Form/Utils.ts Normal file
View file

@ -0,0 +1,10 @@
export class Utils {
//Function to convert strings to camel case
static camelize = (str: string) => {
return str
.replace(/(?:^\w|[A-Z]|\b\w)/g, function (word, index) {
return index === 0 ? word.toLowerCase() : word.toUpperCase()
})
.replace(/\s+/g, "")
}
}