Files
banu-front/src/features/global-components/schema/index.js
T
sajjadtalkhabi d2a577f254 first commit
2026-05-13 01:43:05 +03:30

19 lines
561 B
JavaScript

import { object, string } from 'yup'
import { phoneNumberRule } from '@/constants/rules/phoneNumberRule'
import { nationalCodeRule } from '@/constants/rules/nationalCodeRule'
export const sampleSchema = object().shape({
subject: string().required(),
note: string().required(),
})
export const demoFormSchema = object().shape({
fullName: string().required().min(3),
phoneNumber: phoneNumberRule,
nationalCode: nationalCodeRule,
bio: string().max(160).nullable().notRequired(),
province: string().required(),
birthDate: string().required(),
})