feat(SW-237): Updated parallel route to the root layout

This commit is contained in:
Hrishikesh Vaipurkar
2024-08-30 15:46:36 +02:00
parent ad2182a60b
commit c2e521035b
10 changed files with 39 additions and 52 deletions

View File

@@ -1,5 +1,3 @@
import BookingWidget from "@/components/BookingWidget"
import styles from "./layout.module.css"
import {
@@ -18,12 +16,9 @@ export default function ContentTypeLayout({
}
>) {
return (
<>
<BookingWidget />
<section className={styles.layout}>
{breadcrumbs}
{children}
</section>
</>
<section className={styles.layout}>
{breadcrumbs}
{children}
</section>
)
}

View File

@@ -1,5 +1,3 @@
import BookingWidget from "@/components/BookingWidget"
import styles from "./layout.module.css"
import { LangParams, LayoutArgs } from "@/types/params"
@@ -7,10 +5,5 @@ import { LangParams, LayoutArgs } from "@/types/params"
export default function HotelReservationLayout({
children,
}: React.PropsWithChildren<LayoutArgs<LangParams>>) {
return (
<>
<BookingWidget />
<div className={styles.layout}>{children}</div>
</>
)
return <div className={styles.layout}>{children}</div>
}