From 5f46de0fc9c68f2fcea98bc3abd29d038dbe7d3c Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 15 Apr 2024 17:54:28 +0200 Subject: [PATCH] feat: show post box only after login --- web/src/lib.rs | 38 ++++++++++++++++++-------------------- web/src/main.rs | 2 -- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/web/src/lib.rs b/web/src/lib.rs index 596a61e1..cbe079e4 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -31,25 +31,23 @@ pub fn LoginBox( } />
-

- - - () - .await.unwrap(); - tx.set(Some(auth)); - }); - } /> -

+ + + () + .await.unwrap(); + tx.set(Some(auth)); + }); + } />
} @@ -60,7 +58,7 @@ pub fn PostBox(token: Signal>) -> impl IntoView { let summary_ref: NodeRef = create_node_ref(); let content_ref: NodeRef = create_node_ref(); view! { -
+