feat(SW-312): fix "2-for-1-breakfast" only unlocked for level 5

This commit is contained in:
Matilda Landström
2024-08-29 14:36:26 +02:00
parent f178f7fde0
commit 8da332dcc3
15 changed files with 97 additions and 93 deletions

View File

@@ -30,7 +30,7 @@ export type CardsGridProps = Pick<CardsGrid, "cards_grid"> & {
export type Content = { content: RteBlockContent["content"]["content"] }
type Benefit = { title: string }
type BenefitTitle = { title: string }
export type OverviewTableProps = { activeMembership: MembershipLevel | null }
@@ -39,7 +39,7 @@ export type Level = {
name: string
requiredPoints: number
requiredNights?: number
benefits: Benefit[]
benefits: BenefitTitle[]
}
export type LevelCardProps = {
@@ -54,15 +54,15 @@ export type ComparisonLevel = {
description: string
requirement: string
icon: string
benefits: [
{
name: string
description: string
unlocked: boolean
value?: string
valueDetails?: string
},
]
benefits: Benefit[]
}
export type Benefit = {
name: string
description: string
unlocked: boolean
value?: string
valueDetails?: string
}
export type LevelSummaryProps = {