Explorar el Código

fix: 修改动态图片组件类型

Before hace 6 meses
padre
commit
9170046376

+ 1 - 2
src/app/[locale]/(TabBar)/deposit/DepositData.tsx

@@ -15,7 +15,6 @@ import actions from "@/app/[locale]/(TabBar)/deposit/actions";
 import Empty from "@/components/Empty";
 import "@/styles/deposit.scss";
 import { server } from "@/utils/client";
-import Image from "next/image";
 interface Props {}
 
 interface RewardsProps {
@@ -161,7 +160,7 @@ const DepositData: FC<Props> = (props) => {
     return (
         <div className="deposit-box">
             <div className="img-box">
-                <Image
+                <img
                     className={"h-[100%] w-[100%] object-cover"}
                     src={activeType.icon || ""}
                     alt={activeType.name || ""}

+ 1 - 1
src/app/[locale]/(navbar)/doings/discount/DepositData.tsx

@@ -147,7 +147,7 @@ const DepositData: FC<Props> = (props) => {
             <div className="deposit-box">
                 <div className={"flex items-center"}>
                     <div className="img-box">
-                        <Image
+                        <img
                             className={"h-[100%] w-[100%] object-cover"}
                             src={activeType.icon || ""}
                             alt={activeType.name || ""}

+ 1 - 2
src/app/[locale]/(navbar)/withdraw/WithdrawWidget.tsx

@@ -17,7 +17,6 @@ import { flatPoint, percentage } from "@/utils/methods";
 import { ActionSheet, Button, Form, Input, ProgressBar, Toast } from "antd-mobile";
 import { FormInstance } from "antd-mobile/es/components/form";
 import { useTranslations } from "next-intl";
-import Image from "next/image";
 import Link from "next/link";
 import { FC, Fragment, useRef, useState } from "react";
 import "./page.scss";
@@ -269,7 +268,7 @@ const WithdrawWidget: FC<Props> = (props) => {
             <Box className={"custom-form"}>
                 <div className="withdraw-box">
                     <div className="img-box">
-                        <Image
+                        <img
                             className={"h-[100%] w-[100%] object-cover"}
                             src={activeWallet.icon}
                             alt={activeWallet.name}