From 86b0569cd292ef08cbd6356c01be80b3d24e259c Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 11 Aug 2024 15:13:44 +0200 Subject: [PATCH] feat(web): add hashtags link in search --- web/src/page/search.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/page/search.rs b/web/src/page/search.rs index accad30..b81708b 100644 --- a/web/src/page/search.rs +++ b/web/src/page/search.rs @@ -9,6 +9,8 @@ use crate::prelude::*; pub fn SearchPage() -> impl IntoView { let auth = use_context::().expect("missing auth context"); + let query = use_query_map().get().get("q").cloned().unwrap_or_default(); + let user = create_local_resource( move || use_query_map().get().get("q").cloned().unwrap_or_default(), move |q| { @@ -33,7 +35,10 @@ pub fn SearchPage() -> impl IntoView { } ); + view! { + #{query} +