首页接口更新&&支付页面调试
This commit is contained in:
@@ -6,17 +6,11 @@ import {Dialog} from '@/components/ui/dialog'
|
||||
import {PaymentProps} from './type'
|
||||
|
||||
export type PaymentModalProps = {
|
||||
onSuccess?: () => void
|
||||
onConfirm?: () => Promise<void>
|
||||
onClose?: () => void
|
||||
} & PaymentProps
|
||||
|
||||
export function PaymentModal(props: PaymentModalProps) {
|
||||
const handleClose = (success: boolean) => {
|
||||
if (success && props.onSuccess) {
|
||||
props.onSuccess()
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<Dialog
|
||||
defaultOpen={true}
|
||||
|
||||
Reference in New Issue
Block a user