0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

Use native props destructuring on measures menu

This commit is contained in:
Andrey Antukh 2023-05-30 11:39:01 +02:00
parent 03271ce3fc
commit 6a1c32bb71

View file

@ -69,7 +69,9 @@
;; -- User/drawing coords
(mf/defc measures-menu
[{:keys [ids ids-with-children values type all-types shape] :as props}]
{::mf/wrap-props false
::mf/wrap [mf/memo]}
[{:keys [ids ids-with-children values type all-types shape]}]
(let [options (if (= type :multiple)
(reduce #(union %1 %2) (map #(get type->options %) all-types))
(get type->options type))