|
@@ -6,12 +6,11 @@ import useGame from "@/hooks/useGame";
|
|
|
import { useRouter } from "@/i18n/routing";
|
|
|
import { useWalletStore } from "@/stores/useWalletStore";
|
|
|
import { getToken } from "@/utils/Cookies";
|
|
|
-import { Button, Popup, Toast } from "antd-mobile";
|
|
|
+import { Button, Image, Popup, Toast } from "antd-mobile";
|
|
|
import { useTranslations } from "next-intl";
|
|
|
import { FC, PropsWithChildren, ReactNode, useEffect, useRef, useState } from "react";
|
|
|
import TipsModal, { ModalProps } from "../TipsModal";
|
|
|
import styles from "./style.module.scss";
|
|
|
-import { Image } from 'antd-mobile'
|
|
|
export interface CardProps {
|
|
|
item?: GameListRep;
|
|
|
render?: (value: GameListRep) => ReactNode;
|
|
@@ -136,12 +135,12 @@ const Card: FC<PropsWithChildren<CardProps>> = (props) => {
|
|
|
render(item!)
|
|
|
) : (
|
|
|
<div className={styles.cardWrap} onClick={() => handler(item!)}>
|
|
|
- <Image
|
|
|
+ <Image
|
|
|
lazy={true}
|
|
|
src={item?.game_icon}
|
|
|
alt={item?.game_name_cn}
|
|
|
- width={'100%'}
|
|
|
- height={'1.54rem'}
|
|
|
+ width={"100%"}
|
|
|
+ height={"1.54rem"}
|
|
|
className={"h-[100%] w-[100%]"}
|
|
|
/>
|
|
|
</div>
|
|
@@ -168,11 +167,10 @@ const Card: FC<PropsWithChildren<CardProps>> = (props) => {
|
|
|
<Box className={"w-1/1 flex w-[4.02rem] flex-1"}>
|
|
|
<div className={styles.cardWrap} style={{ width: "1.1rem" }}>
|
|
|
<Image
|
|
|
- lazy={true}
|
|
|
- loading={'lazy'}
|
|
|
src={item?.game_icon}
|
|
|
alt={item?.game_name + "-" + item?.category_name}
|
|
|
className={"h-[100%] w-[100%]"}
|
|
|
+ height={"1.54rem"}
|
|
|
/>
|
|
|
</div>
|
|
|
<div className={styles.cardWrapGmeInfo}>
|