0c498d82ca
feat: trackingsdk as client component * feat: trackingsdk as client component * Cleanup * Merge changes from feat/trackingsdk-client * revert yarn.lock * Added lcpTime and wait with tracking until we have the values Approved-by: Joakim Jäderberg
36 lines
949 B
TypeScript
36 lines
949 B
TypeScript
import { Suspense } from "react"
|
|
|
|
import { serverClient } from "@/lib/trpc/server"
|
|
|
|
import MaxWidth from "@/components/MaxWidth"
|
|
import Title from "@/components/TempDesignSystem/Text/Title"
|
|
import TrackingSDK from "@/components/TrackingSDK"
|
|
import LinkToOverview from "@/components/Webviews/LinkToOverview"
|
|
|
|
import Blocks from "./Blocks"
|
|
|
|
import styles from "./loyaltyPage.module.css"
|
|
|
|
export default async function AboutScandicFriends() {
|
|
const loyaltyPageRes = await serverClient().contentstack.loyaltyPage.get()
|
|
|
|
if (!loyaltyPageRes) {
|
|
return null
|
|
}
|
|
|
|
const { tracking, loyaltyPage } = loyaltyPageRes
|
|
return (
|
|
<>
|
|
<section className={styles.content}>
|
|
<LinkToOverview />
|
|
<MaxWidth tag="main" className={styles.blocks}>
|
|
<Title>{loyaltyPage.heading}</Title>
|
|
<Blocks blocks={loyaltyPage.blocks} />
|
|
</MaxWidth>
|
|
</section>
|
|
|
|
<TrackingSDK pageData={tracking} />
|
|
</>
|
|
)
|
|
}
|