feat(SW-237): Detached booking widget toggle graphql query from page settings

This commit is contained in:
Hrishikesh Vaipurkar
2024-09-02 16:52:24 +02:00
parent c2e521035b
commit 243d9aa988
8 changed files with 122 additions and 97 deletions

View File

@@ -6,9 +6,7 @@ import { getLang } from "@/i18n/serverContext"
export default async function BookingWidgetPage() {
// Get the booking widget show/hide status based on page specific settings
const bookingWidgetToggle =
await serverClient().contentstack.base.page_settings({
lang: getLang(),
})
await serverClient().contentstack.bookingwidget.getToggle()
return (
<>