feat: create blocks component for loyalty
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import Title from "@/components/Title"
|
||||
import MaxWidth from "@/components/MaxWidth"
|
||||
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
import { LangParams, PageArgs, UriParams } from "@/types/params"
|
||||
import { notFound } from "next/navigation"
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import MaxWidth from "@/components/MaxWidth"
|
||||
import Sidebar from "@/components/Loyalty/Sidebar"
|
||||
import { Blocks } from "@/components/Loyalty/Blocks"
|
||||
|
||||
import type { LangParams, PageArgs, UriParams } from "@/types/params"
|
||||
|
||||
import styles from "./page.module.css"
|
||||
import Sidebar from "@/components/Loyalty/Sidebar"
|
||||
|
||||
export default async function LoyaltyPage({
|
||||
params,
|
||||
@@ -32,8 +33,7 @@ export default async function LoyaltyPage({
|
||||
: null}
|
||||
</aside>
|
||||
<section className={styles.blocks}>
|
||||
<Title as="h3">{loyaltyPage.title}</Title>
|
||||
<Content content={loyaltyPage.content} />
|
||||
<Blocks blocks={loyaltyPage.blocks} />
|
||||
</section>
|
||||
</MaxWidth>
|
||||
)
|
||||
@@ -41,7 +41,3 @@ export default async function LoyaltyPage({
|
||||
return notFound()
|
||||
}
|
||||
}
|
||||
|
||||
function Content(content: any) {
|
||||
return <></>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user