fix: rewriting rules for my-pages

This commit is contained in:
Michael Zetterberg
2024-05-16 15:22:39 +02:00
parent f1682b5a15
commit 5e3041a73a
18 changed files with 150 additions and 282 deletions

View File

@@ -1,13 +1,11 @@
import { firaMono, firaSans } from "@/app/[lang]/(live)/fonts"
import Header from "@/components/MyPages/Header"
import Sidebar from "@/components/MyPages/Sidebar"
import styles from "./layout.module.css"
import type { MyPagesLayoutProps } from "@/types/components/myPages/layout"
export default async function MyPagesLayout({
breadcrumbs,
children,
params,
}: React.PropsWithChildren<MyPagesLayoutProps>) {
@@ -16,11 +14,7 @@ export default async function MyPagesLayout({
className={`${firaMono.variable} ${firaSans.variable} ${styles.layout}`}
>
<Header lang={params.lang} />
{breadcrumbs}
<div className={styles.content}>
<Sidebar lang={params.lang} />
{children}
</div>
{children}
</div>
)
}