From bb9eb465f4361c9724fccf014352e4fb712679c1 Mon Sep 17 00:00:00 2001 From: meraghon Date: Fri, 2 Jan 2026 15:30:40 -0500 Subject: [PATCH] Display date status --- src/pages/test_page.rs | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/src/pages/test_page.rs b/src/pages/test_page.rs index 3e8c4cb..800e6a7 100644 --- a/src/pages/test_page.rs +++ b/src/pages/test_page.rs @@ -1,4 +1,4 @@ -use crate::common::{DateInfo, DateRange}; +use crate::common::{DateInfo, DateRange, DateStatus}; use crate::components::{DashboardButton, Date}; use leptos::prelude::*; @@ -42,10 +42,11 @@ pub fn TestPage() -> impl IntoView { title: "Title".to_string(), date: DateRange::Range("February 2nd, 2026".to_string(), "February 10th, 2026".to_string()), description: "This is a test".to_string(), + status: DateStatus::Upcoming } } icon="/Check_Style2.png" - status="Open" + /> impl IntoView { title: "Scholarships Due".to_string(), date: DateRange::Single("November 4th, 2025".to_string()), description: "This is a test".to_string(), + status: DateStatus::Open + } + } + icon="/Warning_Style2.png" + /> + +