feat(WEB-220): label translations
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { Lang } from "@/constants/languages"
|
||||
import {
|
||||
Block,
|
||||
CardsGrid,
|
||||
@@ -5,6 +6,8 @@ import {
|
||||
RteBlockContent,
|
||||
} from "@/server/routers/contentstack/loyaltyPage/output"
|
||||
|
||||
import type { IntlFormatters } from "@formatjs/intl"
|
||||
|
||||
export type BlocksProps = {
|
||||
blocks: Block[]
|
||||
}
|
||||
@@ -40,6 +43,8 @@ export type Level = {
|
||||
}
|
||||
|
||||
export type LevelCardProps = {
|
||||
formatMessage: IntlFormatters["formatMessage"]
|
||||
lang: Lang
|
||||
level: {
|
||||
tier: number
|
||||
name: string
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export type ShowMoreButtonParams = {
|
||||
disabled?: boolean
|
||||
loadMoreData: () => void
|
||||
disabled: boolean
|
||||
}
|
||||
|
||||
5
types/i18n.ts
Normal file
5
types/i18n.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import type { IntlConfig } from "react-intl"
|
||||
|
||||
export type ServerIntlProviderProps = React.PropsWithChildren<{
|
||||
intl: IntlConfig
|
||||
}>
|
||||
Reference in New Issue
Block a user