feat: add initial support for points page
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user