chore: improve typings
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Lang } from "@/constants/languages"
|
||||
import { membershipLevels } from "@/constants/membershipLevels"
|
||||
import {
|
||||
Block,
|
||||
CardsGrid,
|
||||
@@ -16,7 +17,6 @@ export type BlocksProps = {
|
||||
|
||||
export type DynamicContentProps = {
|
||||
dynamicContent: DynamicContent["dynamic_content"]
|
||||
user?: User
|
||||
}
|
||||
|
||||
export type DynamicComponentProps = {
|
||||
@@ -40,7 +40,7 @@ export type OverviewTableTitleProps = { texts: OverviewTableTitleTranslation[] }
|
||||
export type OverviewTableProps = { user?: User }
|
||||
|
||||
export type Level = {
|
||||
tier: number
|
||||
tier: membershipLevels
|
||||
name: string
|
||||
requiredPoints: number
|
||||
requiredNights?: number
|
||||
@@ -55,7 +55,7 @@ export type LevelCardProps = {
|
||||
}
|
||||
|
||||
export type ComparisonLevel = {
|
||||
tier: number
|
||||
tier: membershipLevels
|
||||
name: string
|
||||
description: string
|
||||
requirement: string
|
||||
@@ -103,3 +103,16 @@ export type BenefitTableHeaderProps = {
|
||||
name: string
|
||||
description: string
|
||||
}
|
||||
|
||||
export enum overviewTableActionsEnum {
|
||||
SET_SELECTED_LEVEL_A_MOBILE = "SET_SELECTED_LEVEL_A_MOBILE",
|
||||
SET_SELECTED_LEVEL_B_MOBILE = "SET_SELECTED_LEVEL_B_MOBILE",
|
||||
SET_SELECTED_LEVEL_A_DESKTOP = "SET_SELECTED_LEVEL_A_DESKTOP",
|
||||
SET_SELECTED_LEVEL_B_DESKTOP = "SET_SELECTED_LEVEL_B_DESKTOP",
|
||||
SET_SELECTED_LEVEL_C_DESKTOP = "SET_SELECTED_LEVEL_C_DESKTOP",
|
||||
}
|
||||
|
||||
export type OverviewTableReducerAction = {
|
||||
type: overviewTableActionsEnum
|
||||
payload: ComparisonLevel
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user