fix: restore register success alert layout with login link

This commit is contained in:
xfy 2026-06-04 15:59:17 +08:00
parent 4e33bd3ee6
commit 58f972aa17

View File

@ -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 {}, }
"去登录"
} }
} }