|
@@ -1,16 +1,17 @@
|
|
|
+"use client";
|
|
|
import { CashbackTypes } from "@/api/cashback";
|
|
|
import Box from "@/components/Box";
|
|
|
-import { getLocale, getTranslations } from "next-intl/server";
|
|
|
+import { useLocale, useTranslations } from "next-intl";
|
|
|
import Image from "next/image";
|
|
|
import Extract from "./components/Extract";
|
|
|
|
|
|
interface Props {
|
|
|
cashbackInfo: CashbackTypes;
|
|
|
}
|
|
|
-const Week = async (props: Props) => {
|
|
|
+const Week = (props: Props) => {
|
|
|
const { cashbackInfo } = props;
|
|
|
- const local = await getLocale();
|
|
|
- const t = await getTranslations("cashback");
|
|
|
+ const local = useLocale();
|
|
|
+ const t = useTranslations("cashback");
|
|
|
return (
|
|
|
<Box className={"rounded-[0_0_20px_20px] bg-gradient-to-b from-[#fffed5] to-[#fffffe]"}>
|
|
|
<div className={"flex"}>
|