fix: remove pagination from friends endpoints since it is no longer supported

This commit is contained in:
Christel Westerberg
2024-07-11 13:36:18 +02:00
parent 3374505aee
commit 9ede5e4210
8 changed files with 63 additions and 144 deletions

View File

@@ -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" })}`

View File

@@ -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 ? (