From 5e9e9bcf58cab0c065fe3390b3158392a08654ed Mon Sep 17 00:00:00 2001 From: meraghon Date: Fri, 19 Dec 2025 10:28:19 -0500 Subject: [PATCH] Test date range enum --- src/pages/test_page.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/test_page.rs b/src/pages/test_page.rs index e52ef2a..3e8c4cb 100644 --- a/src/pages/test_page.rs +++ b/src/pages/test_page.rs @@ -1,4 +1,4 @@ -use crate::common::DateInfo; +use crate::common::{DateInfo, DateRange}; use crate::components::{DashboardButton, Date}; use leptos::prelude::*; @@ -40,7 +40,7 @@ pub fn TestPage() -> impl IntoView { important_dates=vec!{ DateInfo { title: "Title".to_string(), - date: "Nov 4".to_string(), + date: DateRange::Range("February 2nd, 2026".to_string(), "February 10th, 2026".to_string()), description: "This is a test".to_string(), } } @@ -51,7 +51,7 @@ pub fn TestPage() -> impl IntoView { important_dates=vec!{ DateInfo { title: "Scholarships Due".to_string(), - date: "Nov 4".to_string(), + date: DateRange::Single("November 4th, 2025".to_string()), description: "This is a test".to_string(), } }