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

Allow providing set name

This commit is contained in:
Florian Schroedl 2024-08-16 14:22:56 +02:00
parent e502def755
commit ae1c30ad56

View file

@ -217,7 +217,7 @@
"🗑️"]]]])]])]]
[:div.spaced
[:b "Sets"]
[:button {:on-click #(st/emit! (wdt/create-token-set nil))} "Create"]]
[:button {:on-click #(st/emit! (wdt/create-token-set {:name (js/window.prompt "Set name")}))} "Create"]]
[:ul.spaced-y
(for [[_ {:keys [id name]}] token-sets]
[:li {:class [(when (= selected-token-set-id id) "selected")]