diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/frontend/tubo/bookmarks/modals.cljs | 2 | ||||
-rw-r--r-- | src/frontend/tubo/layout/views.cljs | 6 | ||||
-rw-r--r-- | src/frontend/tubo/settings/views.cljs | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/frontend/tubo/bookmarks/modals.cljs b/src/frontend/tubo/bookmarks/modals.cljs index e424191..c20ff9a 100644 --- a/src/frontend/tubo/bookmarks/modals.cljs +++ b/src/frontend/tubo/bookmarks/modals.cljs @@ -27,7 +27,7 @@ (let [!bookmark-name (r/atom "")] (fn [] [modals/modal-content "Create New Playlist?" - [layout/text-input "Title" :text-input @!bookmark-name + [layout/text-input "Title" @!bookmark-name #(reset! !bookmark-name (.. % -target -value)) "Playlist name"] [layout/secondary-button "Back" #(rf/dispatch [:modals/close])] diff --git a/src/frontend/tubo/layout/views.cljs b/src/frontend/tubo/layout/views.cljs index 77bcf56..c7c94d7 100644 --- a/src/frontend/tubo/layout/views.cljs +++ b/src/frontend/tubo/layout/views.cljs @@ -113,7 +113,7 @@ (map-indexed #(with-meta %2 {:key %1}) children)]) (defn text-input - [label _key value on-change placeholder] + [label value on-change placeholder] [generic-input label [:input.text-black {:type "text" @@ -122,7 +122,7 @@ :placeholder placeholder}]]) (defn boolean-input - [label _key value on-change] + [label value on-change] [generic-input label [:input {:type "checkbox" @@ -131,7 +131,7 @@ :on-change on-change}]]) (defn select-input - [label _key value options on-change] + [label value options on-change] [generic-input label [:select.focus:ring-transparent.bg-transparent.font-bold {:value value diff --git a/src/frontend/tubo/settings/views.cljs b/src/frontend/tubo/settings/views.cljs index 1e95e92..415d474 100644 --- a/src/frontend/tubo/settings/views.cljs +++ b/src/frontend/tubo/settings/views.cljs @@ -6,12 +6,12 @@ (defn boolean-input [label key value] - [layout/boolean-input label key value + [layout/boolean-input label value #(rf/dispatch [:settings/change key (not value)])]) (defn select-input [label key value options on-change] - [layout/select-input label key value options + [layout/select-input label value options (or on-change #(rf/dispatch [:settings/change key (.. % -target -value)]))]) |