From 088ee6dde7dfdfc1ea8ca37fc0154dbc92cb1a62 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Fri, 30 Dec 2022 21:24:04 +0100 Subject: feat(frontend): Add a mobile nav --- src/frontend/tau/events.cljs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/frontend/tau/events.cljs') diff --git a/src/frontend/tau/events.cljs b/src/frontend/tau/events.cljs index 24da7d0..0e43688 100644 --- a/src/frontend/tau/events.cljs +++ b/src/frontend/tau/events.cljs @@ -43,6 +43,11 @@ (fn [db _] (assoc db :page-scroll 0))) +(rf/reg-event-db + ::toggle-mobile-nav + (fn [db _] + (assoc db :show-mobile-nav (not (:show-mobile-nav db))))) + (rf/reg-event-fx ::navigated (fn [{:keys [db]} [_ new-match]] -- cgit v1.2.3