feat(SW-762): add h5 level

This commit is contained in:
Fredrik Thorsson
2024-11-04 10:17:48 +01:00
parent 7f24dfc703
commit f84866da45
3 changed files with 3 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ async function LevelCard({ level }: LevelCardProps) {
</BiroScript>
<MembershipLevelIcon level={level.level_id} color="red" />
</header>
<Title textAlign="center" level="h4">
<Title textAlign="center" level="h5">
{pointsString}
{level.required_nights ? (
<span className={styles.redText}>

View File

@@ -2,7 +2,7 @@ import { headingVariants } from "./variants"
import type { VariantProps } from "class-variance-authority"
type HeadingLevel = "h1" | "h2" | "h3" | "h4"
type HeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5"
export interface HeadingProps
extends Omit<React.HTMLAttributes<HTMLHeadingElement>, "color">,

View File

@@ -26,6 +26,7 @@ const config = {
h2: styles.h2,
h3: styles.h3,
h4: styles.h4,
h5: styles.h4,
},
},
defaultVariants: {