initial setup, formik, fields, layout
This commit is contained in:
parent
765cc0c7cf
commit
b23d706180
16 changed files with 578 additions and 53 deletions
10
components/Form/Utils.ts
Normal file
10
components/Form/Utils.ts
Normal 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, "")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue