diff --git a/rust-analyzer.toml b/rust-analyzer.toml index ad17b4b..63f6ef7 100644 --- a/rust-analyzer.toml +++ b/rust-analyzer.toml @@ -1,2 +1,2 @@ [rustfmt] -overrideCommand = ["leptosfmt", "--stdin", "--rustfmt"] \ No newline at end of file +overrideCommand = ["leptosfmt", "--stdin", "--rustfmt"] diff --git a/src/pages/home_page.rs b/src/pages/home_page.rs index a3f5597..0ebb0d2 100644 --- a/src/pages/home_page.rs +++ b/src/pages/home_page.rs @@ -158,73 +158,82 @@ pub fn HomePage() -> impl IntoView { // Replace this fallback with a real loading screen. {move || { - server_resource.get().map(|submission: StudentInfo| { - let reactive_info = StudentInfoReactive::new(submission); + server_resource + .get() + .map(|submission: StudentInfo| { + let reactive_info = StudentInfoReactive::new(submission); + let select_value = RwSignal::new(String::from("Math")); + let chk_select = RwSignal::new(vec!["Testing 2".into()]); + let elements_disabled = RwSignal::new(false); - let select_value = RwSignal::new(String::from("Math")); - let chk_select = RwSignal::new(vec!["Testing 2".into()]); - - let elements_disabled = RwSignal::new(false); - - view! { -
- -

"Testing paragraph! This panel should be the same size as the other."

-
- - -

- "Current user's reported full name from the API: " - {reactive_info.first_name}" "{reactive_info.last_name} -

-
- - - - - - - + + + + "Submit" + +
+
+ } + }) }}