fix: apply into_any on pages that will not compile
This is a production-only build failure due to type explosion.
This commit is contained in:
1 parent
0b4aae4db3
commit
84212d2360
6 files changed
+9
-15
No files matched your search
@@ -57,5 +57,5 @@ pub fn DashboardButton(
|
||||
|
||||
</div>
|
||||
</button>
|
||||
}
|
||||
}.into_any()
|
||||
}
|
||||
@@ -120,5 +120,5 @@ pub fn DateList(
|
||||
})
|
||||
.collect_view()
|
||||
}}
|
||||
}
|
||||
}.into_any()
|
||||
}
|
||||
@@ -115,8 +115,7 @@ fn RadioOther(
|
||||
|
||||
// This span is the check icon. It is centered within the div and has a border on the bottom
|
||||
// and right sides, which is then rotated to appear like a checkmark.
|
||||
<span
|
||||
class="absolute left-1/2 top-1/2 block h-2.5 w-2.5 -translate-x-1/2 -translate-y-1/2
|
||||
<span class="absolute left-1/2 top-1/2 block h-2.5 w-2.5 -translate-x-1/2 -translate-y-1/2
|
||||
rotate-45 transform border-3 border-3 rounded-full bg-white
|
||||
border-white transition-opacity duration-150"></span>
|
||||
</div>
|
||||
@@ -243,8 +242,6 @@ pub fn RadioList(
|
||||
selected_value.get() == item.get() && !other_checked.get()
|
||||
});
|
||||
let on_change = move || {
|
||||
// on_change only runs when the radio button is checked, not when unchecked.
|
||||
// Change the selected value to the new one.
|
||||
other_checked.set(false);
|
||||
selected_value.set(item.get());
|
||||
error
|
||||
@@ -256,6 +253,8 @@ pub fn RadioList(
|
||||
);
|
||||
dirty.set(true);
|
||||
};
|
||||
// on_change only runs when the radio button is checked, not when unchecked.
|
||||
// Change the selected value to the new one.
|
||||
|
||||
view! {
|
||||
<Radio
|
||||
|
||||
@@ -24,7 +24,6 @@ use leptos::task::spawn_local;
|
||||
use leptos::web_sys::HtmlAnchorElement;
|
||||
use leptos::wasm_bindgen::JsCast;
|
||||
use std::collections::HashMap;
|
||||
use crate::pages::api::get_comparisons_categorized;
|
||||
use crate::utils::get_user_claims;
|
||||
|
||||
/// # Get Student Info
|
||||
@@ -363,8 +362,7 @@ pub fn HomePage() -> impl IntoView {
|
||||
</Row>
|
||||
}
|
||||
})
|
||||
}}
|
||||
<Row>
|
||||
}} <Row>
|
||||
<ActionButton on:click=pdf_button_click>"Get PDF"</ActionButton>
|
||||
</Row>
|
||||
</Suspense>
|
||||
|
||||
@@ -609,7 +609,7 @@ fn ScholarshipForm(
|
||||
items=vec![
|
||||
"Write an essay describing your major/career direction. Include any abilities, interests, experiences, employment or clubs you have had that have affected your direction. If you are undecided, indicate why.",
|
||||
"Why is community service important? How has it personally affected you and your goals and what role do you hope to play in it in the future?",
|
||||
"How has participation in sports been beneficial to your personal, academic, and emotional growth?"
|
||||
"How has participation in sports been beneficial to your personal, academic, and emotional growth?",
|
||||
]
|
||||
.iter()
|
||||
.map(|prompt| prompt.to_string())
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
use chrono::DateTime;
|
||||
use crate::common::{DateInfo, DateRange};
|
||||
use crate::components::{ActionButton, DashboardButton, DateList};
|
||||
use crate::components::DashboardButton;
|
||||
use leptos::prelude::*;
|
||||
use crate::pages::api::{get_important_dates, CreateDates};
|
||||
|
||||
#[component]
|
||||
pub fn TestPage() -> impl IntoView {
|
||||
@@ -44,5 +41,5 @@ pub fn TestPage() -> impl IntoView {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}.into_any()
|
||||
}
|
||||
Reference in new issue
Block a user