0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00

Show create text when no theme is available

This commit is contained in:
Florian Schroedl 2024-08-26 15:04:45 +02:00
parent 4060b6d40f
commit 2e23543c11

View file

@ -182,12 +182,12 @@
"Create"]]))
(mf/defc edit-button
[{:keys []}]
[{:keys [create?]}]
[:button {:class (stl/css :themes-button)
:on-click (fn [e]
(dom/stop-propagation e)
(modal/show! :tokens/themes {}))}
"Edit"])
(if create? "Create" "Edit")])
(mf/defc themes-sidebar
[_props]
@ -205,7 +205,7 @@
{:value id :label name})
xs))
themes)}]
[:& edit-button]]]))
[:& edit-button {:create? (empty? themes)}]]]))
(mf/defc sets-sidebar
[]