fix: remove pagination from friends endpoints since it is no longer supported
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import { dt } from "@/lib/dt"
|
||||
|
||||
import { getIntl } from "@/i18n"
|
||||
|
||||
import styles from "./row.module.css"
|
||||
|
||||
import type { RowProps } from "@/types/components/myPages/myPage/earnAndBurn"
|
||||
|
||||
export default function Row({ transaction, lang }: RowProps) {
|
||||
const { formatMessage } = useIntl()
|
||||
export default async function Row({ transaction, lang }: RowProps) {
|
||||
const { formatMessage } = await getIntl()
|
||||
const description =
|
||||
transaction.hotelName && transaction.city
|
||||
? `${transaction.hotelName}, ${transaction.city} ${transaction.nights} ${formatMessage({ id: "nights" })}`
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
import Body from "@/components/TempDesignSystem/Text/Body"
|
||||
import { getIntl } from "@/i18n"
|
||||
|
||||
import Row from "./Row"
|
||||
|
||||
@@ -16,8 +15,8 @@ const tableHeadings = [
|
||||
"Points",
|
||||
]
|
||||
|
||||
export default function DesktopTable({ lang, transactions }: TableProps) {
|
||||
const { formatMessage } = useIntl()
|
||||
export default async function DesktopTable({ lang, transactions }: TableProps) {
|
||||
const { formatMessage } = await getIntl()
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
{transactions.length ? (
|
||||
|
||||
Reference in New Issue
Block a user