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

Use regular map for options

This commit is contained in:
Florian Schroedl 2024-05-17 09:04:35 +02:00
parent 165e222117
commit cb980ace44

View file

@ -100,7 +100,10 @@
tokens (mf/deref refs/workspace-tokens)
border-radius-tokens (mf/use-memo (mf/deps tokens) #(wtc/tokens-name-map-for-type :border-radius tokens))
border-radius-options (mf/use-memo (mf/deps border-radius-tokens) #(map (comp :name val) border-radius-tokens))
border-radius-options (mf/use-memo (mf/deps border-radius-tokens)
#(map (fn [[_k {:keys [name] :as item}]]
(assoc item :label name))
border-radius-tokens))
flex-child? (->> selection-parents (some ctl/flex-layout?))
absolute? (ctl/item-absolute? shape)