mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 04:08:23 +00:00
💄 Internal function rename on tokens sidebar
This commit is contained in:
parent
7a4d8b824e
commit
e4bf2bd9ad
@ -162,7 +162,7 @@
|
||||
:on-click on-token-pill-click
|
||||
:on-context-menu on-context-menu}]))]])]]))
|
||||
|
||||
(defn sorted-token-groups
|
||||
(defn- get-sorted-token-groups
|
||||
"Separate token-types into groups of `:empty` or `:filled` depending if tokens exist for that type.
|
||||
Sort each group alphabetically (by their `:token-key`)."
|
||||
[tokens]
|
||||
@ -286,7 +286,7 @@
|
||||
token-groups
|
||||
(mf/with-memo [tokens selected-token-set-tokens]
|
||||
(-> (select-keys tokens (keys selected-token-set-tokens))
|
||||
(sorted-token-groups)))]
|
||||
(get-sorted-token-groups)))]
|
||||
|
||||
[:*
|
||||
[:& token-context-menu]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user