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