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:
@@ -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 />
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@ import { env } from "@/env/server"
|
|||||||
import { BookingWidgetSkeleton } from "@/components/BookingWidget/Client"
|
import { BookingWidgetSkeleton } from "@/components/BookingWidget/Client"
|
||||||
|
|
||||||
export default function LoadingBookingWidget() {
|
export default function LoadingBookingWidget() {
|
||||||
if (!env.ENABLE_BOOKING_FLOW) {
|
if (!env.ENABLE_BOOKING_WIDGET) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user