From 4115d24bd88344d5b90de9be6e8c1c79b67e5923 Mon Sep 17 00:00:00 2001 From: meraghon Date: Fri, 5 Dec 2025 12:39:41 -0500 Subject: [PATCH] Added status to date --- src/components/date.rs | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/src/components/date.rs b/src/components/date.rs index a73d79e..9e57fff 100644 --- a/src/components/date.rs +++ b/src/components/date.rs @@ -21,8 +21,9 @@ pub fn Date( /// The file path or URL of the icon displayed at the top of the button. #[prop(into)] icon: String, - // The status of the event (open, upcoming, deadline...) - //#[prop(into)] status: String, + /// The status of the event (open, upcoming, deadline...) + #[prop(into)] + status: String, ) -> impl IntoView { view! {
icon
-
-

- {title.clone()} -

-

- {date.clone()} -

-

- {description.clone()} -

+
+
+
+

+ {title.clone()} +

+

+ {date.clone()} +

+

+ {description.clone()} +

+
+
+ + {status.clone()} + +
+
}