From f09047a500b6e644a06397c51fd7920413a25d22 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 3 Dec 2024 10:46:13 +0100 Subject: [PATCH] Revert "replace with to fix crash" This reverts commit 4e77e653624fcb12ccb52c56d8226e1359cd64f9. --- src/frontend/app.rs | 3 ++- src/frontend/components/nav.rs | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/frontend/app.rs b/src/frontend/app.rs index c38d2b1..9b05eb5 100644 --- a/src/frontend/app.rs +++ b/src/frontend/app.rs @@ -35,7 +35,8 @@ pub fn site() -> Resource { } pub fn is_logged_in() -> bool { - site().with_default(|site| site.my_profile.is_some()) + //site().with_default(|site| site.my_profile.is_some()) + false } pub fn is_admin() -> bool { site().with_default(|site| { diff --git a/src/frontend/components/nav.rs b/src/frontend/components/nav.rs index 6912ef4..5fa91e5 100644 --- a/src/frontend/components/nav.rs +++ b/src/frontend/components/nav.rs @@ -50,7 +50,7 @@ pub fn Nav() -> impl IntoView {
  • "Articles"
  • - +
  • "Create Article" @@ -59,12 +59,12 @@ pub fn Nav() -> impl IntoView { "Notifications " - {move || notification_count.get()} + {move || notification_count.get()}
  • -
    +
  • impl IntoView {
  • - + impl IntoView { } - +