aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tau/components/navigation.cljs
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/tau/components/navigation.cljs')
-rw-r--r--src/frontend/tau/components/navigation.cljs15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/frontend/tau/components/navigation.cljs b/src/frontend/tau/components/navigation.cljs
index a0d25e2..c8f0b5a 100644
--- a/src/frontend/tau/components/navigation.cljs
+++ b/src/frontend/tau/components/navigation.cljs
@@ -3,11 +3,10 @@
[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"]]]))
+(defn back-button [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"]]])