aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tau/events.cljs
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2022-12-30 21:24:04 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2022-12-30 21:29:58 +0100
commit088ee6dde7dfdfc1ea8ca37fc0154dbc92cb1a62 (patch)
treeee1591929e5682c19c4bbe64b7b8caadeef748ff /src/frontend/tau/events.cljs
parent7732d3feccf351acfc478c34646a77f2b08aa3f4 (diff)
feat(frontend): Add a mobile nav
Diffstat (limited to 'src/frontend/tau/events.cljs')
-rw-r--r--src/frontend/tau/events.cljs5
1 files changed, 5 insertions, 0 deletions
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]]