Test date range enum

This commit is contained in:
meraghon committed 2025-12-19 10:28:19 -05:00
1 parent fab172c4d1
commit 5e9e9bcf58
1 file changed
+3 -3
+3 -3
View File
@@ -1,4 +1,4 @@
use crate::common::DateInfo; use crate::common::{DateInfo, DateRange};
use crate::components::{DashboardButton, Date}; use crate::components::{DashboardButton, Date};
use leptos::prelude::*; use leptos::prelude::*;
@@ -40,7 +40,7 @@ pub fn TestPage() -> impl IntoView {
important_dates=vec!{ important_dates=vec!{
DateInfo { DateInfo {
title: "Title".to_string(), 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(), description: "This is a test".to_string(),
} }
} }
@@ -51,7 +51,7 @@ pub fn TestPage() -> impl IntoView {
important_dates=vec!{ important_dates=vec!{
DateInfo { DateInfo {
title: "Scholarships Due".to_string(), 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(), description: "This is a test".to_string(),
} }
} }