feat(SW-750): subtitle as child

This commit is contained in:
Fredrik Thorsson
2024-11-18 14:53:11 +01:00
parent d5cdbf7e82
commit 32bd5b8b6f

View File

@@ -4,6 +4,7 @@ import Link from "@/components/TempDesignSystem/Link"
import Body from "@/components/TempDesignSystem/Text/Body"
import Caption from "@/components/TempDesignSystem/Text/Caption"
import Subtitle from "@/components/TempDesignSystem/Text/Subtitle"
import Title from "@/components/TempDesignSystem/Text/Title"
import { getIntl } from "@/i18n"
import { getLang } from "@/i18n/serverContext"
@@ -22,8 +23,10 @@ export default async function ContactInformation({
const lang = getLang()
return (
<div className={styles.wrapper}>
<Subtitle color="burgundy">
{intl.formatMessage({ id: "Practical information" })}
<Subtitle color="burgundy" asChild>
<Title level="h3">
{intl.formatMessage({ id: "Practical information" })}
</Title>
</Subtitle>
<div className={styles.information}>
<div className={styles.address}>