fix(SW-285): add sidebar to content page

This commit is contained in:
Chuma McPhoy
2024-09-02 22:48:55 +02:00
parent a444746ccb
commit bc01fe499b
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
import { serverClient } from "@/lib/trpc/server"
import { Blocks } from "@/components/Content/Blocks"
import Sidebar from "@/components/Content/Sidebar"
import Hero from "@/components/Hero"
import Intro from "@/components/Intro"
import Preamble from "@/components/TempDesignSystem/Text/Preamble"
@@ -22,6 +23,10 @@ export default async function ContentPage() {
return (
<>
<section className={styles.contentPage}>
{contentPage.sidebar?.length ? (
<Sidebar blocks={contentPage.sidebar} />
) : null}
<header className={styles.header}>
<Intro>
<Title as="h2">{contentPage.header.heading}</Title>

View File

@@ -23,7 +23,7 @@ export default async function LoyaltyPage() {
return (
<>
<section className={styles.content}>
{loyaltyPage.sidebar.length ? (
{loyaltyPage.sidebar?.length ? (
<Sidebar blocks={loyaltyPage.sidebar} />
) : null}