cleanup profile page html to be valid replace old temp design system components with new ones divider is now correctly an hr element less section elements to be valid html
31 lines
763 B
TypeScript
31 lines
763 B
TypeScript
import { Suspense } from "react"
|
|
|
|
import Sidebar from "@/components/MyPages/Sidebar"
|
|
import SidebarNavigationSkeleton from "@/components/MyPages/Sidebar/SidebarNavigationSkeleton"
|
|
import Surprises from "@/components/MyPages/Surprises"
|
|
|
|
import styles from "./layout.module.css"
|
|
|
|
export default async function MyPagesLayout({
|
|
breadcrumbs,
|
|
children,
|
|
}: React.PropsWithChildren<{
|
|
breadcrumbs: React.ReactNode
|
|
}>) {
|
|
return (
|
|
<div className={styles.container}>
|
|
<div className={styles.layout}>
|
|
{breadcrumbs}
|
|
<div className={styles.content}>
|
|
<Suspense fallback={<SidebarNavigationSkeleton />}>
|
|
<Sidebar />
|
|
</Suspense>
|
|
{children}
|
|
</div>
|
|
</div>
|
|
|
|
<Surprises />
|
|
</div>
|
|
)
|
|
}
|