refactor: improve level selection logic

This commit is contained in:
Arvid Norlin
2024-06-07 15:54:56 +02:00
parent 24810eaee6
commit af205451e6
4 changed files with 165 additions and 96 deletions

View File

@@ -8,16 +8,20 @@ import {
import type { IntlFormatters } from "@formatjs/intl"
import { User } from "@/types/user"
export type BlocksProps = {
blocks: Block[]
}
export type DynamicContentProps = {
dynamicContent: DynamicContent["dynamic_content"]
user?: User
}
export type DynamicComponentProps = {
component: DynamicContent["dynamic_content"]["component"]
user?: User
}
export type CardsGridProps = Pick<CardsGrid, "cards_grid">
@@ -33,6 +37,8 @@ type OverviewTableTitleTranslation = {
export type OverviewTableTitleProps = { texts: OverviewTableTitleTranslation[] }
export type OverviewTableProps = { user?: User }
export type Level = {
tier: number
name: string