feat(SW-237): Updated parallel route to the root layout
This commit is contained in:
@@ -1,24 +1,11 @@
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import Form from "@/components/Forms/BookingWidget"
|
||||
import { getLang } from "@/i18n/serverContext"
|
||||
|
||||
import styles from "./bookingWidget.module.css"
|
||||
|
||||
export default async function BookingWidget() {
|
||||
// Get the booking widget show/hide status based on page specific settings
|
||||
const bookingWidgetToggle =
|
||||
await serverClient().contentstack.base.page_settings({
|
||||
lang: getLang(),
|
||||
})
|
||||
|
||||
return (
|
||||
<>
|
||||
{bookingWidgetToggle && bookingWidgetToggle.hideBookingWidget ? null : (
|
||||
<section className={styles.container}>
|
||||
<Form />
|
||||
</section>
|
||||
)}
|
||||
</>
|
||||
<section className={styles.container}>
|
||||
<Form />
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user