mirror of
https://github.com/penpot/penpot.git
synced 2025-02-01 11:59:17 -05:00
Link up delete button & fix create theme ui jumping
This commit is contained in:
parent
1405720e0b
commit
5939db771e
1 changed files with 7 additions and 3 deletions
|
@ -155,10 +155,14 @@
|
||||||
:on-select on-toggle-token-set
|
:on-select on-toggle-token-set
|
||||||
:on-toggle on-toggle-token-set}]]
|
:on-toggle on-toggle-token-set}]]
|
||||||
[:div {:class (stl/css :edit-theme-footer)}
|
[:div {:class (stl/css :edit-theme-footer)}
|
||||||
(when edit?
|
(if edit?
|
||||||
[:button {:class (stl/css :button-secondary)
|
[:button {:class (stl/css :button-secondary)
|
||||||
:type "button"}
|
:type "button"
|
||||||
"Delete"])
|
:on-click (fn []
|
||||||
|
(st/emit! (wdt/delete-token-theme (:id theme)))
|
||||||
|
(on-back))}
|
||||||
|
"Delete"]
|
||||||
|
[:div])
|
||||||
[:div {:class (stl/css :button-footer)}
|
[:div {:class (stl/css :button-footer)}
|
||||||
[:button {:class (stl/css :button-secondary)
|
[:button {:class (stl/css :button-secondary)
|
||||||
:type "button"
|
:type "button"
|
||||||
|
|
Loading…
Add table
Reference in a new issue