From 84212d2360d65acc3949677ecea56f5a84817234 Mon Sep 17 00:00:00 2001 From: Lucas Vas Date: Fri, 16 Jan 2026 08:54:41 -0500 Subject: [PATCH] fix: apply into_any on pages that will not compile This is a production-only build failure due to type explosion. --- src/components/dashboard_button.rs | 2 +- src/components/date.rs | 2 +- src/components/lists/single/radio.rs | 43 ++++++++++++++-------------- src/pages/home_page.rs | 4 +-- src/pages/scholarship_info.rs | 2 +- src/pages/test_page.rs | 7 ++--- 6 files changed, 27 insertions(+), 33 deletions(-) diff --git a/src/components/dashboard_button.rs b/src/components/dashboard_button.rs index f471e33..9558824 100644 --- a/src/components/dashboard_button.rs +++ b/src/components/dashboard_button.rs @@ -57,5 +57,5 @@ pub fn DashboardButton( - } + }.into_any() } diff --git a/src/components/date.rs b/src/components/date.rs index 88c66f8..67c50d8 100644 --- a/src/components/date.rs +++ b/src/components/date.rs @@ -120,5 +120,5 @@ pub fn DateList( }) .collect_view() }} - } + }.into_any() } diff --git a/src/components/lists/single/radio.rs b/src/components/lists/single/radio.rs index ebaaa01..a554dd7 100644 --- a/src/components/lists/single/radio.rs +++ b/src/components/lists/single/radio.rs @@ -108,22 +108,21 @@ fn RadioOther( // This div displays the box for the checkbox, and applies some styling to the child // span element.
+ transition-bg duration-200 peer-checked:bg-red-700 peer-checked:border-red-700 + [&>span]:opacity-0 peer-checked:[&>span]:opacity-100 + peer-disabled:bg-gray-600/33 peer-disabled:border-gray-600 + peer-disabled:peer-checked:bg-gray-600"> // 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. - +
>()} - - - + + +
diff --git a/src/pages/home_page.rs b/src/pages/home_page.rs index 748e088..194c44f 100644 --- a/src/pages/home_page.rs +++ b/src/pages/home_page.rs @@ -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 { } }) - }} - + }} "Get PDF" diff --git a/src/pages/scholarship_info.rs b/src/pages/scholarship_info.rs index 4da0253..7a0628d 100644 --- a/src/pages/scholarship_info.rs +++ b/src/pages/scholarship_info.rs @@ -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()) diff --git a/src/pages/test_page.rs b/src/pages/test_page.rs index c38cbe6..008676f 100644 --- a/src/pages/test_page.rs +++ b/src/pages/test_page.rs @@ -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 {
- } + }.into_any() }