diff --git a/src/topbar/guest/signup.rs b/src/topbar/guest/signup.rs index 81989a8..ee157cb 100644 --- a/src/topbar/guest/signup.rs +++ b/src/topbar/guest/signup.rs @@ -108,6 +108,13 @@ pub fn SignUp(props: &Props) -> Html { cloned_state.set(data); }); + let cloned_state = state.clone(); + let on_jump_to_verify = Callback::from(move |_| { + let mut state = cloned_state.deref().clone(); + state.view = View::Verify; + cloned_state.set(state); + }); + let cloned_state = state.clone(); let on_sign_up_api_response = Callback::from(move |response: Result<()>| { let mut state = cloned_state.deref().clone(); @@ -195,6 +202,10 @@ pub fn SignUp(props: &Props) -> Html {
{&state.clone().deref().status}
{"Or "}{"verify"}{" a requested account."}
+