feat: add initial support for points page

This commit is contained in:
Arvid Norlin
2024-05-13 15:24:15 +02:00
parent e853f3980a
commit 7ad8726633
10 changed files with 185 additions and 1 deletions

View File

@@ -2,11 +2,14 @@ import JsonToHtml from "@/components/JsonToHtml"
import CurrentBenefitsBlock from "@/components/MyPages/Blocks/Benefits/CurrentLevel"
import NextLevelBenefitsBlock from "@/components/MyPages/Blocks/Benefits/NextLevel"
import Overview from "@/components/MyPages/Blocks/Overview"
import CurrentPointsBalance from "@/components/MyPages/Blocks/Points/CurrentPointsBalance"
import EarnAndBurn from "@/components/MyPages/Blocks/Points/EarnAndBurn"
import Shortcuts from "@/components/MyPages/Blocks/Shortcuts"
import PreviousStays from "@/components/MyPages/Blocks/Stays/Previous"
import SoonestStays from "@/components/MyPages/Blocks/Stays/Soonest"
import UpcomingStays from "@/components/MyPages/Blocks/Stays/Upcoming"
import PreviousStays from "../Blocks/Stays/Previous"
import { ExpiringPoints } from "../Blocks/Points/ExpiringPoints"
import {
AccountPageContentProps,
@@ -31,6 +34,12 @@ function DynamicComponent({ component, props }: AccountPageContentProps) {
return <CurrentBenefitsBlock {...props} />
case DynamicContentComponents.next_benefits:
return <NextLevelBenefitsBlock {...props} />
case DynamicContentComponents.my_points:
return <CurrentPointsBalance />
case DynamicContentComponents.expiring_points:
return <ExpiringPoints />
case DynamicContentComponents.earn_and_burn:
return <EarnAndBurn />
default:
return null
}