From af782e37c1554267ad7b0176a41d951a7c5dc0bf Mon Sep 17 00:00:00 2001 From: mackt <1033530438@qq.com> Date: Wed, 16 Oct 2024 17:01:06 +0800 Subject: [PATCH] =?UTF-8?q?update(Footer):=20=E6=9B=BF=E6=8D=A2=E4=BA=8C?= =?UTF-8?q?=E7=BB=B4=E7=A0=81=E4=B8=BA=E6=9C=AC=E5=9C=B0=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Footer/Download/FooterDownload.tsx | 2 ++ src/components/common/QRCodeDialog.tsx | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/Footer/Download/FooterDownload.tsx b/src/components/Footer/Download/FooterDownload.tsx index d4af4ef..66fa924 100644 --- a/src/components/Footer/Download/FooterDownload.tsx +++ b/src/components/Footer/Download/FooterDownload.tsx @@ -44,6 +44,7 @@ export default function FooterPlatform({ className }: { className?: string }) { header="IOS版下载" subHeader={ios?.version ? `最新版V${ios.version}` : ''} buttonText="去App Store下载" + img="/img/download/qrcode_apple.svg" url={ios?.url ?? ''} > @@ -53,6 +54,7 @@ export default function FooterPlatform({ className }: { className?: string }) { header="安卓版下载" subHeader={android?.version ? `最新版V${android.version}` : ''} buttonText="下载安装包至本地" + img="/img/download/qrcode_android.svg" url={android?.url ?? ''} > diff --git a/src/components/common/QRCodeDialog.tsx b/src/components/common/QRCodeDialog.tsx index e34fcb2..1d618bb 100644 --- a/src/components/common/QRCodeDialog.tsx +++ b/src/components/common/QRCodeDialog.tsx @@ -1,18 +1,22 @@ 'use client'; +import Image from 'next/image'; + import { Dialog, DialogContent, DialogTrigger, DialogClose } from '@/components/ui/dialog'; -import { QRCode, IconClose } from '@/components'; +import { IconClose } from '@/components'; export default function QRCodeDialog({ header, buttonText, url, + img, subHeader, children, }: { header: string; url: string; + img: string; children: React.ReactNode; subHeader?: string; buttonText?: string; @@ -33,7 +37,7 @@ export default function QRCodeDialog({ {/* 二维码 */}
- {!!url && } + {!!img && }
{/* 按钮 */}