Merged in fix/bookingwidget-skeleton (pull request #1409)

fix: bookingwidget skeleton - hide if not enabled

* fix: bookingwidget skeleton - hide if not enabled


Approved-by: Michael Zetterberg
This commit is contained in:
Linus Flood
2025-02-25 12:46:18 +00:00
parent 27d587965a
commit 8a564274c5
2 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
import { env } from "@/env/server"
import { BookingWidgetSkeleton } from "@/components/BookingWidget/Client"
export default function LoadingBookingWidget() {
if (!env.ENABLE_BOOKING_WIDGET_HOTELRESERVATION_PATH) {
return null
}
return <BookingWidgetSkeleton />
}

View File

@@ -3,7 +3,7 @@ import { env } from "@/env/server"
import { BookingWidgetSkeleton } from "@/components/BookingWidget/Client"
export default function LoadingBookingWidget() {
if (!env.ENABLE_BOOKING_FLOW) {
if (!env.ENABLE_BOOKING_WIDGET) {
return null
}