From 6bcb7a6126eea93d82f9a3122aef33abe05e8249 Mon Sep 17 00:00:00 2001 From: Pontus Dreij Date: Mon, 7 Oct 2024 11:04:44 +0200 Subject: [PATCH] feat(SW-350): updated BookingWidgetType --- types/components/bookingWidget/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/components/bookingWidget/index.ts b/types/components/bookingWidget/index.ts index 0f42a7d58..fb511bc86 100644 --- a/types/components/bookingWidget/index.ts +++ b/types/components/bookingWidget/index.ts @@ -1,12 +1,16 @@ +import { VariantProps } from "class-variance-authority" import { z } from "zod" import { bookingWidgetSchema } from "@/components/Forms/BookingWidget/schema" +import { bookingWidgetVariants } from "@/components/Forms/BookingWidget/variants" import type { Locations } from "@/types/trpc/routers/hotel/locations" export type BookingWidgetSchema = z.output -export type BookingWidgetType = "default" | "full" +export type BookingWidgetType = VariantProps< + typeof bookingWidgetVariants +>["type"] export interface BookingWidgetProps { type?: BookingWidgetType