修复手机端菜单展开遮罩没有关闭的问题;修复并增强 alert 组件展示效果

This commit is contained in:
2025-06-16 11:27:34 +08:00
parent e2d559d4e0
commit 4344a2985d
5 changed files with 21 additions and 18 deletions

View File

@@ -70,7 +70,7 @@ export default function Extract(props: ExtractProps) {
)}
>
<CardSection>
<Alert variant="warn" >
<Alert variant="warn">
<CircleAlert/>
<AlertTitle>IP前需要将本机IP添加到白名单后才可使用</AlertTitle>
</Alert>

View File

@@ -7,7 +7,7 @@ import balance from './_assets/balance.svg'
import Image from 'next/image'
import {useEffect, useRef, useState} from 'react'
import {useProfileStore} from '@/components/providers/StoreProvider'
import {Alert, AlertDescription} from '@/components/ui/alert'
import {Alert, AlertTitle} from '@/components/ui/alert'
import {ApiResponse, ExtraResp, ExtraReq} from '@/lib/api'
import {toast} from 'sonner'
import {Loader} from 'lucide-react'
@@ -172,16 +172,16 @@ export default function Pay(props: PayProps) {
</div>
{balanceEnough ? (
<Alert>
<AlertDescription>
<Alert variant="done">
<AlertTitle>
</AlertDescription>
</AlertTitle>
</Alert>
) : (
<Alert variant="fail">
<AlertDescription>
<AlertTitle>
</AlertDescription>
</AlertTitle>
</Alert>
)}
</div>