feat: adjust select rate ui to latest design
This commit is contained in:
@@ -17,6 +17,8 @@ const specialAlertSchema = z.object({
|
||||
|
||||
export const specialAlertsSchema = z
|
||||
.array(specialAlertSchema)
|
||||
.nullish()
|
||||
.transform((arr) => (arr ? arr.filter(Boolean) : []))
|
||||
.transform((data) => {
|
||||
const now = dt().utc().format("YYYY-MM-DD")
|
||||
const filteredAlerts = data.filter((alert) => {
|
||||
@@ -35,4 +37,3 @@ export const specialAlertsSchema = z
|
||||
displayInBookingFlow: alert.displayInBookingFlow,
|
||||
}))
|
||||
})
|
||||
.default([])
|
||||
|
||||
Reference in New Issue
Block a user