123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- export const logInForm = {
- form: {
- email: {
- id: 1,
- name: "email",
- type: "email",
- label: "Email",
- validation: {
- requred: {
- cb: (v) => v.trim() === ''
- }
- },
- fail: false,
- touch: false,
- value: ""
- },
- password: {
- id: 2,
- name: "password",
- type: "password",
- label: "Password",
- validation: {
- requred: {
- cb: (v) => v.trim() === '',
- },
- minL: {
- cb: (v) => v.trim().length < 6
- }
- },
- fail: false,
- touch: false,
- value: ""
- }
- },
- validForm: false
- };
- export const signUpForm = {
- form: {
- email: {
- id: 1,
- name: "email",
- type: "email",
- label: "Email",
- validation: {
- requred: {
- cb: (v) => v.trim() === ''
- }
- },
- fail: false,
- touch: false,
- value: ""
- },
- firstName: {
- id: 2,
- type: "text",
- name: "firstName",
- label: "First Name",
- validation: {
- requred: {
- cb: (v) => v.trim() === ''
- }
- },
- fail: false,
- touch: false,
- value: ""
- },
- lastName: {
- id: 3,
- type: "text",
- name: "lastName",
- label: "First Name",
- validation: {
- requred: {
- cb: (v) => v.trim() === ''
- }
- },
- fail: false,
- touch: false,
- value: ""
- },
- password: {
- id: 4,
- name: "password",
- type: "password",
- label: "Password",
- validation: {
- requred: {
- cb: (v) => v.trim() === '',
- },
- minL: {
- cb: (v) => v.trim().length < 6
- }
- },
- fail: false,
- touch: false,
- value: ""
- },
- confirmPassword: {
- id: 5,
- name: "confirmPassword",
- type: "password",
- label: "Confirm Password",
- validation: {
- requred: {
- cb: (v) => v.trim() === '',
- },
- minL: {
- cb: (v) => v.trim().length < 6
- },
- match: {
- match: "password",
- cb: (v, m) => v !== m,
- }
- },
- fail: false,
- touch: false,
- value: ""
- }
- },
- validForm: false
- };
|