fix: add correct blocks and routes for points

This commit is contained in:
Christel Westerberg
2024-05-29 17:49:01 +02:00
parent 07f81c34e3
commit 66da53925e
3 changed files with 18 additions and 6 deletions

View File

@@ -5,6 +5,8 @@ import { modWebviewLink } from "@/utils/webviews"
import CurrentBenefitsBlock from "../../Blocks/Benefits/CurrentLevel"
import NextLevelBenefitsBlock from "../../Blocks/Benefits/NextLevel"
import CurrentPointsBalance from "../../Blocks/Points/CurrentPointsBalance"
import EarnAndBurn from "../../Blocks/Points/EarnAndBurn"
import {
AccountPageContentProps,
@@ -23,6 +25,14 @@ function DynamicComponent({ component, props }: AccountPageContentProps) {
return <CurrentBenefitsBlock {...props} />
case DynamicContentComponents.next_benefits:
return <NextLevelBenefitsBlock {...props} />
case DynamicContentComponents.my_points:
return <CurrentPointsBalance {...props} />
case DynamicContentComponents.expiring_points:
// TODO: Add once available
// return <ExpiringPoints />
return null
case DynamicContentComponents.earn_and_burn:
return <EarnAndBurn {...props} />
default:
return null
}