From 5a9210e560ca47d8f4d8c43b06fc93d1d064a6f6 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 10 Nov 2023 16:23:33 +0700 Subject: Add close on modal otp activation, change validation register schema, fix term and condition checkbox --- src-migrate/common/types/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src-migrate/common/types') 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; +export type RegisterProps = z.infer; export type RegisterResApiProps = { register: boolean; -- cgit v1.2.3