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:
parent
165e222117
commit
cb980ace44
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue