♻️ Remove anonym fn

This commit is contained in:
Eva Marco 2025-06-16 16:23:53 +02:00
parent 325a78a967
commit 41c8bba1df

View file

@ -47,9 +47,12 @@
:class (stl/css-case :check-icon true
:check-icon-visible selected?)}]])]))
(defn- open-tokens-theme-modal
[]
(modal/show! :tokens/themes {}))
(mf/defc theme-options
[{:keys [active-theme-paths themes on-close]}]
(let [on-edit-click #(modal/show! :tokens/themes {})]
[:ul {:class (stl/css :theme-options :custom-select-dropdown)
:role "listbox"}
(for [[group themes] themes]
@ -67,9 +70,9 @@
[:li {:class (stl/css-case :checked-element true
:checked-element-button true)
:role "option"
:on-click on-edit-click}
:on-click open-tokens-theme-modal}
[:> text* {:as "span" :typography "body-small"} (tr "workspace.tokens.edit-themes")]
[:> icon* {:icon-id i/arrow-right :aria-hidden true}]]]))
[:> icon* {:icon-id i/arrow-right :aria-hidden true}]]])
(mf/defc theme-select
[{:keys []}]