修复实名认证页面跳转
This commit is contained in:
@@ -53,7 +53,9 @@ async function UserCenter() {
|
||||
<CircleAlertIcon className="text-warn"/>
|
||||
<span>未实名</span>
|
||||
</span>
|
||||
<Button className="h-9">去实名</Button>
|
||||
<Link href="/admin/identify">
|
||||
<Button className="h-9">去实名</Button>
|
||||
</Link>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -3,7 +3,7 @@ import {Button} from '@/components/ui/button'
|
||||
import {Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger} from '@/components/ui/dialog'
|
||||
import {useRouter} from 'next/navigation'
|
||||
import {useState} from 'react'
|
||||
|
||||
import Link from 'next/link'
|
||||
interface RealnameAuthDialogProps {
|
||||
hasAuthenticated: boolean
|
||||
triggerClassName?: string
|
||||
@@ -51,14 +51,7 @@ export function RealnameAuthDialog({
|
||||
>
|
||||
稍后再说
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() => {
|
||||
router.push('/admin/identify')
|
||||
onSuccess?.()
|
||||
}}
|
||||
>
|
||||
立即认证
|
||||
</Button>
|
||||
<Link href="/admin/identify"><Button onClick={() => actualOnOpenChange(false)}>立即认证</Button></Link>
|
||||
</div>
|
||||
</div>
|
||||
</DialogContent>
|
||||
|
||||
Reference in New Issue
Block a user