From bd9f35c9935b1d9b4dec513114b8d493e9a17ffd Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Fri, 12 Jan 2024 22:11:09 +0100 Subject: [PATCH] Add tag filter --- src/app/pages/posts.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app/pages/posts.rs b/src/app/pages/posts.rs index c5f34d8..4c977c4 100644 --- a/src/app/pages/posts.rs +++ b/src/app/pages/posts.rs @@ -129,9 +129,18 @@ pub fn PostList() -> impl IntoView { }) }; + let filter_view = move || { + tag().and_then(|tag| Some(view! { +
+ Tag sélectionné : {tag} +
+ })) + }; + view! { }>