mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 22:22:43 -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"]]))
|
"Create"]]))
|
||||||
|
|
||||||
(mf/defc edit-button
|
(mf/defc edit-button
|
||||||
[{:keys []}]
|
[{:keys [create?]}]
|
||||||
[:button {:class (stl/css :themes-button)
|
[:button {:class (stl/css :themes-button)
|
||||||
:on-click (fn [e]
|
:on-click (fn [e]
|
||||||
(dom/stop-propagation e)
|
(dom/stop-propagation e)
|
||||||
(modal/show! :tokens/themes {}))}
|
(modal/show! :tokens/themes {}))}
|
||||||
"Edit"])
|
(if create? "Create" "Edit")])
|
||||||
|
|
||||||
(mf/defc themes-sidebar
|
(mf/defc themes-sidebar
|
||||||
[_props]
|
[_props]
|
||||||
|
@ -205,7 +205,7 @@
|
||||||
{:value id :label name})
|
{:value id :label name})
|
||||||
xs))
|
xs))
|
||||||
themes)}]
|
themes)}]
|
||||||
[:& edit-button]]]))
|
[:& edit-button {:create? (empty? themes)}]]]))
|
||||||
|
|
||||||
(mf/defc sets-sidebar
|
(mf/defc sets-sidebar
|
||||||
[]
|
[]
|
||||||
|
|
Loading…
Add table
Reference in a new issue