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,
|
projectPitchDeck: pitchDeckSchema,
|
||||||
projectLogo: z
|
projectLogo: z
|
||||||
.any()
|
.instanceof(File)
|
||||||
.refine((file) => file?.size <= MAX_FILE_SIZE, `Max image size is 5MB.`)
|
.refine((file) => ACCEPTED_IMAGE_TYPES.includes(file.type), {
|
||||||
.refine(
|
message: "Only .jpg, .jpeg, and .png formats are supported.",
|
||||||
(file) => ACCEPTED_IMAGE_TYPES.includes(file?.type),
|
})
|
||||||
"Only .jpg, .jpeg, and .png formats are supported."
|
.refine((file) => file.size <= MAX_FILE_SIZE, {
|
||||||
),
|
message: "Max image size is 5MB.",
|
||||||
|
}),
|
||||||
|
|
||||||
projectPhotos: z
|
projectPhotos: z
|
||||||
.array(
|
.array(
|
||||||
z.object({
|
z.object({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user