💄 Internal function rename on tokens sidebar

This commit is contained in:
Andrey Antukh 2025-02-04 18:37:20 +01:00
parent 7a4d8b824e
commit e4bf2bd9ad

View file

@ -162,7 +162,7 @@
:on-click on-token-pill-click :on-click on-token-pill-click
:on-context-menu on-context-menu}]))]])]])) :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. "Separate token-types into groups of `:empty` or `:filled` depending if tokens exist for that type.
Sort each group alphabetically (by their `:token-key`)." Sort each group alphabetically (by their `:token-key`)."
[tokens] [tokens]
@ -286,7 +286,7 @@
token-groups token-groups
(mf/with-memo [tokens selected-token-set-tokens] (mf/with-memo [tokens selected-token-set-tokens]
(-> (select-keys tokens (keys selected-token-set-tokens)) (-> (select-keys tokens (keys selected-token-set-tokens))
(sorted-token-groups)))] (get-sorted-token-groups)))]
[:* [:*
[:& token-context-menu] [:& token-context-menu]