refactor(SW-302): split upp function into two

This commit is contained in:
Matilda Landström
2024-09-21 11:19:38 +02:00
parent 32c9e73ba9
commit a12eea5493
3 changed files with 51 additions and 50 deletions

View File

@@ -165,7 +165,7 @@ const detailedFacilitySchema = z.object({
})
export const facilitySchema = z.object({
headingText: z.string().optional(), // TODO: Should not be optional, remove when we get meetingsAndConferences headingText
headingText: z.string(),
heroImages: z.array(
z.object({
metaData: imageMetaDataSchema,