mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 10:38:13 -05:00
✨ Rename active-frames-ctx to active-frames
This commit is contained in:
parent
3e3a10b5dd
commit
b9f767a614
2 changed files with 3 additions and 3 deletions
|
@ -19,5 +19,5 @@
|
|||
(def current-scroll (mf/create-context nil))
|
||||
(def current-zoom (mf/create-context nil))
|
||||
|
||||
(def active-frames-ctx (mf/create-context nil))
|
||||
(def active-frames (mf/create-context nil))
|
||||
(def render-thumbnails (mf/create-context nil))
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
(mf/deps objects)
|
||||
#(cph/objects-by-frame objects))]
|
||||
|
||||
[:& (mf/provider ctx/active-frames-ctx) {:value active-frames}
|
||||
[:& (mf/provider ctx/active-frames) {:value active-frames}
|
||||
;; Render font faces only for shapes that are part of the root
|
||||
;; frame but don't belongs to any other frame.
|
||||
(let [xform (comp
|
||||
|
@ -79,7 +79,7 @@
|
|||
(let [shape (obj/get props "shape")
|
||||
|
||||
active-frames
|
||||
(when (cph/root-frame? shape) (mf/use-ctx ctx/active-frames-ctx))
|
||||
(when (cph/root-frame? shape) (mf/use-ctx ctx/active-frames))
|
||||
|
||||
thumbnail?
|
||||
(and (some? active-frames)
|
||||
|
|
Loading…
Add table
Reference in a new issue