|
@@ -3,6 +3,7 @@ import { Category, GameListRep, getGamesApi } from "@/api/home";
|
|
|
import Box from "@/components/Box";
|
|
|
import { SwiperGroup } from "@/components/Card";
|
|
|
import { useRouter } from "@/i18n";
|
|
|
+import { Toast } from "antd-mobile";
|
|
|
import clsx from "clsx";
|
|
|
import { useTranslations } from "next-intl";
|
|
|
import { FC, PropsWithChildren, useEffect, useState } from "react";
|
|
@@ -24,7 +25,8 @@ const TabItem = ({ item }: { item: TabItemType }) => {
|
|
|
const router = useRouter();
|
|
|
const t = useTranslations("ButtonGroup");
|
|
|
const handler = (item: TabItemType) => {
|
|
|
- router.push(item.url);
|
|
|
+ // router.push(item.url);
|
|
|
+ Toast.show("it is under development.");
|
|
|
};
|
|
|
const cls = clsx("iconfont text-[0.14rem]", item.icon);
|
|
|
return (
|