diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-11-13 06:13:25 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-11-13 06:13:25 +0000 |
| commit | 69575d143e29eed51fa733238126341ebda280e8 (patch) | |
| tree | f3f5f251a66fed452241768e900fdd60ae8af87c /src-migrate/common/types | |
| parent | feea1a2602e22659fe73cb55e31c3d01f57218a4 (diff) | |
| parent | 5a9210e560ca47d8f4d8c43b06fc93d1d064a6f6 (diff) | |
Merged in refactor/all (pull request #115)
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; |
