fix: make sidebar and blocks nullable

This commit is contained in:
Christel Westerberg
2024-05-13 11:51:41 +02:00
parent dcddb9b22c
commit 57fd59ebe2
4 changed files with 90 additions and 85 deletions
@@ -6,5 +6,5 @@ const langs = Object.keys(Lang) as [keyof typeof Lang]
export const getLoyaltyPageInput = z.object({
href: z.string().min(1, { message: "href is required" }),
locale: z.enum(langs),
locale: z.nativeEnum(Lang),
})