Merged in feat/section-header-link (pull request #314)

Feat(WEB-359): Update section link for mobile

Approved-by: Chuma Mcphoy (We Ahead)
Approved-by: Arvid Norlin
This commit is contained in:
Matilda Landström
2024-07-04 10:42:01 +00:00
parent eed27b20c2
commit c6ad107e49
17 changed files with 122 additions and 64 deletions

View File

@@ -3,7 +3,8 @@ import { serverClient } from "@/lib/trpc/server"
import { auth } from "@/auth"
import SectionContainer from "@/components/Section/Container"
import Header from "@/components/Section/Header"
import SectionHeader from "@/components/Section/Header"
import SectionLink from "@/components/Section/Link"
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
import Title from "@/components/TempDesignSystem/Text/Title"
@@ -56,7 +57,7 @@ export default function DynamicContent({
<Subtitle>{dynamicContent.subtitle}</Subtitle>
</div>
) : displayHeader ? (
<Header
<SectionHeader
link={dynamicContent.link}
subtitle={dynamicContent.subtitle}
title={dynamicContent.title}
@@ -64,6 +65,9 @@ export default function DynamicContent({
/>
) : null}
<DynamicComponentBlock component={dynamicContent.component} />
{displayHeader && (
<SectionLink link={dynamicContent.link} variant="mobile" />
)}
</SectionContainer>
)
}