fix: restore register success alert layout with login link
This commit is contained in:
parent
4e33bd3ee6
commit
58f972aa17
@ -61,13 +61,12 @@ pub fn Register() -> Element {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if success() {
|
if success() {
|
||||||
AlertBox {
|
div { class: "mb-4 p-3 bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300 rounded-lg text-center",
|
||||||
message: "注册成功!".to_string(),
|
"注册成功!"
|
||||||
variant: "success",
|
Link { class: "block mt-2 text-gray-700 dark:text-[#dadadb] hover:underline cursor-pointer",
|
||||||
}
|
to: Route::Login {},
|
||||||
Link { class: "block text-center mt-2 text-gray-700 dark:text-[#dadadb] hover:underline cursor-pointer",
|
"去登录"
|
||||||
to: Route::Login {},
|
}
|
||||||
"去登录"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user