style: run rustfmt
This commit is contained in:
1 parent
ebb6fe500c
commit
dddc9e4192
1 file changed
+14
-5
@@ -1,6 +1,6 @@
|
||||
use leptos::prelude::*;
|
||||
use crate::components::{Loading, OutlinedTextField, TextFieldType, ValidatedForm};
|
||||
use crate::components::{Loading, OutlinedTextField, TextFieldType, ValidatedForm};
|
||||
use crate::pages::student::form_setup::use_student_form;
|
||||
use leptos::prelude::*;
|
||||
|
||||
#[component]
|
||||
pub fn StudentAcademicsPage() -> impl IntoView {
|
||||
@@ -8,11 +8,18 @@ pub fn StudentAcademicsPage() -> impl IntoView {
|
||||
|
||||
view! {
|
||||
<Suspense fallback=Loading>
|
||||
{move || controller.data_resource.get().map(|_|
|
||||
{move || {
|
||||
controller
|
||||
.data_resource
|
||||
.get()
|
||||
.map(|_| {
|
||||
view! {
|
||||
<div class="flex flex-1" />
|
||||
<div class="flex flex-col flex-2 mt-6">
|
||||
<ValidatedForm title="Academic Information" on_submit=controller.submit_action>
|
||||
<ValidatedForm
|
||||
title="Academic Information"
|
||||
on_submit=controller.submit_action
|
||||
>
|
||||
<OutlinedTextField
|
||||
label="Unweighted GPA:"
|
||||
data_map=controller.data_map
|
||||
@@ -56,8 +63,10 @@ pub fn StudentAcademicsPage() -> impl IntoView {
|
||||
</ValidatedForm>
|
||||
</div>
|
||||
<div class="flex flex-1" />
|
||||
}).collect_view()
|
||||
}
|
||||
})
|
||||
.collect_view()
|
||||
}}
|
||||
</Suspense>
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user