refactor: improve level selection logic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user