fix(SW-285): add sidebar to content page
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import { serverClient } from "@/lib/trpc/server"
|
import { serverClient } from "@/lib/trpc/server"
|
||||||
|
|
||||||
import { Blocks } from "@/components/Content/Blocks"
|
import { Blocks } from "@/components/Content/Blocks"
|
||||||
|
import Sidebar from "@/components/Content/Sidebar"
|
||||||
import Hero from "@/components/Hero"
|
import Hero from "@/components/Hero"
|
||||||
import Intro from "@/components/Intro"
|
import Intro from "@/components/Intro"
|
||||||
import Preamble from "@/components/TempDesignSystem/Text/Preamble"
|
import Preamble from "@/components/TempDesignSystem/Text/Preamble"
|
||||||
@@ -22,6 +23,10 @@ export default async function ContentPage() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<section className={styles.contentPage}>
|
<section className={styles.contentPage}>
|
||||||
|
{contentPage.sidebar?.length ? (
|
||||||
|
<Sidebar blocks={contentPage.sidebar} />
|
||||||
|
) : null}
|
||||||
|
|
||||||
<header className={styles.header}>
|
<header className={styles.header}>
|
||||||
<Intro>
|
<Intro>
|
||||||
<Title as="h2">{contentPage.header.heading}</Title>
|
<Title as="h2">{contentPage.header.heading}</Title>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export default async function LoyaltyPage() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<section className={styles.content}>
|
<section className={styles.content}>
|
||||||
{loyaltyPage.sidebar.length ? (
|
{loyaltyPage.sidebar?.length ? (
|
||||||
<Sidebar blocks={loyaltyPage.sidebar} />
|
<Sidebar blocks={loyaltyPage.sidebar} />
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user