refactor: break out Section container

This commit is contained in:
Christel Westerberg
2024-06-18 15:14:40 +02:00
parent d03e28db4c
commit ceee9fd154
26 changed files with 64 additions and 267 deletions

View File

@@ -1,7 +1,8 @@
import { MembershipLevelEnum } from "@/constants/membershipLevels"
import { serverClient } from "@/lib/trpc/server"
import Header from "@/components/SectionHeader"
import SectionContainer from "@/components/Section/Container"
import Header from "@/components/Section/Header"
import Grids from "@/components/TempDesignSystem/Grids"
import Link from "@/components/TempDesignSystem/Link"
import BiroScript from "@/components/TempDesignSystem/Text/BiroScript"
@@ -45,7 +46,7 @@ export default async function CurrentBenefitsBlock({
}
return (
<section className={styles.container}>
<SectionContainer>
<Header title={title} link={link} subtitle={subtitle} />
<Grids.Scrollable>
{currentLevel.benefits.map((benefit, idx) => (
@@ -63,6 +64,6 @@ export default async function CurrentBenefitsBlock({
</Link>
))}
</Grids.Scrollable>
</section>
</SectionContainer>
)
}