feat: improve instantiation of intl
This commit is contained in:
@@ -12,8 +12,6 @@ import SectionWrapper from "../SectionWrapper"
|
||||
|
||||
import styles from "./loyaltyLevels.module.css"
|
||||
|
||||
import type { FormatXMLElementFn } from "intl-messageformat"
|
||||
|
||||
import type { LoyaltyLevelsProps } from "@/types/components/blocks/dynamicContent"
|
||||
import type { LevelCardProps } from "@/types/components/overviewTable"
|
||||
|
||||
@@ -44,10 +42,7 @@ async function LevelCard({ level }: LevelCardProps) {
|
||||
)
|
||||
|
||||
if (level.required_nights) {
|
||||
pointsMsg = intl.formatMessage<
|
||||
React.ReactNode,
|
||||
FormatXMLElementFn<React.ReactNode>
|
||||
>(
|
||||
pointsMsg = intl.formatMessage(
|
||||
{
|
||||
id: "{pointsAmount, number} points <highlight>or {nightsAmount, number} nights</highlight>",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user