feat(SW-237): Implemented page based toggle for BW

This commit is contained in:
Hrishikesh Vaipurkar
2024-08-19 16:28:47 +02:00
parent 25f2e8f360
commit 0abaa4dc19
10 changed files with 61 additions and 33 deletions

View File

@@ -0,0 +1,5 @@
import BookingWidgetContainer from "@/components/BookingWidgetContainer"
export default function BookingWidgetPage() {
return <BookingWidgetContainer />
}

View File

@@ -0,0 +1,3 @@
export default function DefaultBookingWidgetPage() {
return null
}

View File

@@ -3,18 +3,23 @@ import Sidebar from "@/components/MyPages/Sidebar"
import styles from "./layout.module.css"
export default async function MyPagesLayout({
bookingwidget,
breadcrumbs,
children,
}: React.PropsWithChildren & {
bookingwidget: React.ReactNode
breadcrumbs: React.ReactNode
}) {
return (
<section className={styles.layout}>
{breadcrumbs}
<section className={styles.content}>
<Sidebar />
{children}
<>
{bookingwidget}
<section className={styles.layout}>
{breadcrumbs}
<section className={styles.content}>
<Sidebar />
{children}
</section>
</section>
</section>
</>
)
}