mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-19 05:54:06 +01:00
Refactor Apply page component to adjust left margin for company information section and simplify pitchDeckSchema validation
This commit is contained in:
parent
7c042c6b3c
commit
9675a1c491
@ -41,12 +41,14 @@ export default function Apply() {
|
||||
}),
|
||||
projectPitchDeck: pitchDeckSchema,
|
||||
projectLogo: z
|
||||
.any()
|
||||
.refine((file) => file?.size <= MAX_FILE_SIZE, `Max image size is 5MB.`)
|
||||
.refine(
|
||||
(file) => ACCEPTED_IMAGE_TYPES.includes(file?.type),
|
||||
"Only .jpg, .jpeg, and .png formats are supported."
|
||||
),
|
||||
.instanceof(File)
|
||||
.refine((file) => ACCEPTED_IMAGE_TYPES.includes(file.type), {
|
||||
message: "Only .jpg, .jpeg, and .png formats are supported.",
|
||||
})
|
||||
.refine((file) => file.size <= MAX_FILE_SIZE, {
|
||||
message: "Max image size is 5MB.",
|
||||
}),
|
||||
|
||||
projectPhotos: z
|
||||
.array(
|
||||
z.object({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user