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."}

+
}, View::Verify => html! { diff --git a/style/components.css b/style/components.css index 01c0c45..35aa33d 100644 --- a/style/components.css +++ b/style/components.css @@ -12,4 +12,10 @@ @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } +} + +.link { + color: #690455; + text-decoration: #690455 underline; + cursor: pointer; } \ No newline at end of file