From b5404ac06a3a09d83bef66552083254fdff12196 Mon Sep 17 00:00:00 2001 From: Miguel Ángel Moreno Date: Mon, 26 Dec 2022 22:02:33 +0100 Subject: feat(frontend): Modularize components and add pagination --- src/frontend/tau/components/navigation.cljs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/frontend/tau/components/navigation.cljs (limited to 'src/frontend/tau/components/navigation.cljs') diff --git a/src/frontend/tau/components/navigation.cljs b/src/frontend/tau/components/navigation.cljs new file mode 100644 index 0000000..a0d25e2 --- /dev/null +++ b/src/frontend/tau/components/navigation.cljs @@ -0,0 +1,13 @@ +(ns tau.components.navigation + (:require + [re-frame.core :as rf] + [tau.events :as events])) + +(defn back-button [] + (let [service-color @(rf/subscribe [:service-color])] + [:div.flex {:class "w-4/5"} + [:button.p-2 + {:on-click #(rf/dispatch [::events/history-back])} + [:i.fa-solid.fa-chevron-left + {:style {:color service-color}}] + [:span " Back"]]])) -- cgit v1.2.3