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:
parent
4060b6d40f
commit
2e23543c11
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
[]
|
||||
|
|
Loading…
Add table
Reference in a new issue