mirror of
https://github.com/stackblitz/bolt.new
synced 2025-06-26 18:17:50 +00:00
feat(auth): 登录注册对话框增加登录成功和注册成功后的回调函数
This commit is contained in:
parent
fa87bd73a1
commit
f8c0f5eecf
@ -12,7 +12,7 @@ export function LoginDialog({ isOpen, onClose }: LoginDialogProps) {
|
||||
<Dialog onBackdrop={onClose} onClose={onClose}>
|
||||
<DialogTitle>登录</DialogTitle>
|
||||
<DialogDescription>
|
||||
<Login onClose={onClose} />
|
||||
<Login onClose={onClose} onLoginSuccess={onClose} />
|
||||
</DialogDescription>
|
||||
</Dialog>
|
||||
</DialogRoot>
|
||||
|
||||
@ -12,7 +12,7 @@ export function RegisterDialog({ isOpen, onClose }: RegisterDialogProps) {
|
||||
<Dialog onBackdrop={onClose} onClose={onClose}>
|
||||
<DialogTitle>注册</DialogTitle>
|
||||
<DialogDescription>
|
||||
<Register />
|
||||
<Register onClose={onClose} onRegisterSuccess={onClose} />
|
||||
</DialogDescription>
|
||||
</Dialog>
|
||||
</DialogRoot>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user