- Added CompanyOffer component for submitting company offers with validation. - Integrated email sending functionality upon form submission. - Created a success page for company registration confirmation. - Introduced a reusable SuccessNotification component for displaying success messages. - Updated account update functionality with new fields and validation. - Enhanced user experience with back button and logo components. - Added necessary database migrations for account updates.
17 lines
375 B
TypeScript
17 lines
375 B
TypeScript
import { z } from 'zod';
|
|
|
|
export const companyOfferSchema = z.object({
|
|
companyName: z.string({
|
|
required_error: 'Company name is required',
|
|
}),
|
|
contactPerson: z.string({
|
|
required_error: 'Contact person is required',
|
|
}),
|
|
email: z
|
|
.string({
|
|
required_error: 'Email is required',
|
|
})
|
|
.email('Invalid email'),
|
|
phone: z.string().optional(),
|
|
});
|