个人中心页面按钮跳转与样式修复;实名认证页面界面与文字调整;提取 IP 页面浮动组件复制问题修复
This commit is contained in:
@@ -22,6 +22,7 @@ import {Loader} from 'lucide-react'
|
||||
import {RechargeByAlipay, RechargeByAlipayConfirm, RechargeByWechat, RechargeByWechatConfirm} from '@/actions/user'
|
||||
import * as qrcode from 'qrcode'
|
||||
import {useProfileStore} from '@/components/providers/StoreProvider'
|
||||
import {merge} from '@/lib/utils'
|
||||
|
||||
const schema = zod.object({
|
||||
method: zod.enum(['alipay', 'wechat']),
|
||||
@@ -30,7 +31,11 @@ const schema = zod.object({
|
||||
|
||||
type Schema = zod.infer<typeof schema>
|
||||
|
||||
export type RechargeModelProps = {}
|
||||
export type RechargeModelProps = {
|
||||
classNames?: {
|
||||
trigger?: string
|
||||
}
|
||||
}
|
||||
|
||||
export default function RechargeModal(props: RechargeModelProps) {
|
||||
|
||||
@@ -144,7 +149,7 @@ export default function RechargeModal(props: RechargeModelProps) {
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={setOpen}>
|
||||
<DialogTrigger asChild>
|
||||
<Button theme={`accent`} type={`button`} className={`px-4 h-8`}>去充值</Button>
|
||||
<Button theme={`accent`} type={`button`} className={merge(`px-4 h-8`, props.classNames?.trigger)}>去充值</Button>
|
||||
</DialogTrigger>
|
||||
|
||||
<DialogContent>
|
||||
|
||||
Reference in New Issue
Block a user