更新充值支付接口
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
'use client'
|
||||
import {useState} from 'react'
|
||||
import {useState, MouseEvent} from 'react'
|
||||
import {Dialog, DialogContent} from '@/components/ui/dialog'
|
||||
import {Button} from '@/components/ui/button'
|
||||
import {CheckCircle, AlertCircle, ClockIcon} from 'lucide-react'
|
||||
@@ -25,7 +25,7 @@ export function PaymentStatusCell({trade}: {
|
||||
const [paymentFailed, setPaymentFailed] = useState(false)
|
||||
const platform = usePlatformType()
|
||||
|
||||
const handleClick = (e: React.MouseEvent) => {
|
||||
const handleClick = (e: MouseEvent) => {
|
||||
e.preventDefault()
|
||||
if (!trade?.pay_url) return
|
||||
|
||||
@@ -129,7 +129,7 @@ export function PaymentStatusCell({trade}: {
|
||||
</div>
|
||||
|
||||
<div className="flex justify-center mt-4">
|
||||
<Button className="w-full max-w-[200px]" onClick={() => setPaymentFailed(false)} >完成</Button>
|
||||
<Button className="w-full max-w-[200px]" onClick={() => setPaymentFailed(false)}>完成</Button>
|
||||
</div>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
|
||||
Reference in New Issue
Block a user