diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-10 16:23:33 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-11-10 16:23:33 +0700 |
| commit | 5a9210e560ca47d8f4d8c43b06fc93d1d064a6f6 (patch) | |
| tree | e5ac9162bd86829dd149278cdf9db70076816200 /src-migrate/common/types | |
| parent | 4bed066c03dc55a8f811ff2e23e019d8adc64495 (diff) | |
Add close on modal otp activation, change validation register schema, fix term and condition checkbox
Diffstat (limited to 'src-migrate/common/types')
| -rw-r--r-- | src-migrate/common/types/auth.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-migrate/common/types/auth.ts b/src-migrate/common/types/auth.ts index 5909584a..65fd06c7 100644 --- a/src-migrate/common/types/auth.ts +++ b/src-migrate/common/types/auth.ts @@ -1,6 +1,6 @@ import { registerSchema } from '../validations/auth'; import { OdooApiProps } from './odoo'; -import * as yup from 'yup'; +import { z } from 'zod'; export type AuthProps = { id: number; @@ -19,7 +19,7 @@ export type AuthProps = { export type AuthApiProps = OdooApiProps & { result: AuthProps }; -export type RegisterProps = yup.InferType<typeof registerSchema>; +export type RegisterProps = z.infer<typeof registerSchema>; export type RegisterResApiProps = { register: boolean; |
