mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 09:08:31 -05:00
📎 Add some FIXME comments for future refactors
This commit is contained in:
parent
97e7806bdb
commit
a3faca910f
2 changed files with 6 additions and 2 deletions
|
@ -539,6 +539,7 @@
|
|||
(every? (partial ctl/grid-layout-immediate-child? objects))))
|
||||
workspace-page-objects =))
|
||||
|
||||
;; FIXME: move to viewer.inspect.code
|
||||
(defn get-flex-child-viewer
|
||||
[ids page-id]
|
||||
(l/derived
|
||||
|
@ -550,7 +551,7 @@
|
|||
ids)))
|
||||
st/state =))
|
||||
|
||||
|
||||
;; FIXME: move to viewer.inspect.code
|
||||
(defn get-viewer-objects
|
||||
([]
|
||||
(let [route (deref route)
|
||||
|
|
|
@ -50,7 +50,9 @@
|
|||
</body>
|
||||
</html>")
|
||||
|
||||
(defn get-flex-elements [page-id shapes from]
|
||||
;; FIXME: rename to hook naming convention
|
||||
(defn get-flex-elements
|
||||
[page-id shapes from]
|
||||
(let [ids (mapv :id shapes)
|
||||
ids (hooks/use-equal-memo ids)
|
||||
|
||||
|
@ -63,6 +65,7 @@
|
|||
|
||||
(mf/deref get-layout-children-refs)))
|
||||
|
||||
;; FIXME: rename to hook naming convention
|
||||
(defn get-objects [from]
|
||||
(let [page-objects-ref
|
||||
(mf/use-memo
|
||||
|
|
Loading…
Add table
Reference in a new issue