chore: add breadcrumbs to loyalty page

This commit is contained in:
Matilda Landström
2024-05-23 14:27:49 +02:00
parent c24f9026f7
commit b262ebdb7c
9 changed files with 331 additions and 8 deletions

View File

@@ -1,15 +1,21 @@
import { serverClient } from "@/lib/trpc/server"
import { auth } from "@/auth"
import { Blocks } from "@/components/Loyalty/Blocks"
import Sidebar from "@/components/Loyalty/Sidebar"
import MaxWidth from "@/components/MaxWidth"
import Breadcrumbs from "../MyPages/Breadcrumbs"
import styles from "./loyaltyPage.module.css"
export default async function LoyaltyPage() {
const loyaltyPage = await serverClient().contentstack.loyaltyPage.get()
const session = await auth()
return (
<section className={styles.content}>
{session && <Breadcrumbs b={true} />}
{loyaltyPage.sidebar.length ? (
<Sidebar blocks={loyaltyPage.sidebar} />
) : null}