mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 11:06:12 +02:00
💄 Rename "master" to "main" in components
This commit is contained in:
parent
a1e75c6e03
commit
1e25e543b3
9 changed files with 140 additions and 140 deletions
|
@ -37,7 +37,7 @@
|
|||
(d/export helpers/get-container)
|
||||
(d/export helpers/get-shape)
|
||||
(d/export helpers/get-component)
|
||||
(d/export helpers/is-master-of)
|
||||
(d/export helpers/is-main-of)
|
||||
(d/export helpers/get-component-root)
|
||||
(d/export helpers/get-children)
|
||||
(d/export helpers/get-children-objects)
|
||||
|
|
|
@ -89,11 +89,11 @@
|
|||
(get-in libraries [library-id :data]))]
|
||||
(get-in file [:components component-id])))
|
||||
|
||||
(defn is-master-of
|
||||
[shape-master shape-inst]
|
||||
(defn is-main-of
|
||||
[shape-main shape-inst]
|
||||
(and (:shape-ref shape-inst)
|
||||
(or (= (:shape-ref shape-inst) (:id shape-master))
|
||||
(= (:shape-ref shape-inst) (:shape-ref shape-master)))))
|
||||
(or (= (:shape-ref shape-inst) (:id shape-main))
|
||||
(= (:shape-ref shape-inst) (:shape-ref shape-main)))))
|
||||
|
||||
(defn get-component-root
|
||||
[component]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue