fix(SW-285): add sidebar to content page
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user