Initial commit
This commit is contained in:
11
src/screens/auth/login/lib/form.ts
Normal file
11
src/screens/auth/login/lib/form.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// form.ts
|
||||
import { z } from 'zod';
|
||||
|
||||
export const loginSchema = z.object({
|
||||
phone: z.string().min(12, 'Xato raqam kiritildi'),
|
||||
passportSeriya: z.string().length(2, '2 ta harf kerak'),
|
||||
passportNumber: z.string().length(7, '7 ta raqam kerak'),
|
||||
branchId: z.number().min(1, 'Filialni tanlang'),
|
||||
});
|
||||
|
||||
export type LoginFormType = z.infer<typeof loginSchema>;
|
||||
Reference in New Issue
Block a user