From 9a96b4a2874663e8dd3eaea45c38ec7a80a816a2 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Thu, 24 Sep 2020 13:28:34 -0700 Subject: [PATCH] fixing path. --- src/cljs/auto_ap/views/components/switch_field.cljs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/cljs/auto_ap/views/components/switch_field.cljs diff --git a/src/cljs/auto_ap/views/components/switch_field.cljs b/src/cljs/auto_ap/views/components/switch_field.cljs new file mode 100644 index 00000000..039742db --- /dev/null +++ b/src/cljs/auto_ap/views/components/switch_field.cljs @@ -0,0 +1,6 @@ +(ns auto-ap.views.components.switch-field) + +(defn switch-field [{:keys [id label on-change checked]}] + [:<> + [:input.switch {:type "checkbox" :id id :on-change on-change :checked checked}] + [:label {:for id} label]])