feat(SW-350): Update design for booking widget

This commit is contained in:
Pontus Dreij
2024-10-02 15:51:37 +02:00
parent d58c77493a
commit 04406d3865
6 changed files with 15 additions and 14 deletions

View File

@@ -2,17 +2,13 @@ import { getLocations } from "@/lib/trpc/memoizedRequests"
import BookingWidgetClient from "./Client"
import type { BookingWidgetType } from "@/types/components/bookingWidget"
import type { BookingWidgetProps } from "@/types/components/bookingWidget"
export function preload() {
void getLocations()
}
export default async function BookingWidget({
type,
}: {
type: BookingWidgetType
}) {
export default async function BookingWidget({ type }: BookingWidgetProps) {
const locations = await getLocations()
if (!locations || "error" in locations) {