From b9f767a614437a14e305402d303b685e7a0286b9 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 23 Aug 2022 07:34:23 +0200 Subject: [PATCH] :sparkles: Rename active-frames-ctx to active-frames --- frontend/src/app/main/ui/context.cljs | 2 +- frontend/src/app/main/ui/workspace/shapes.cljs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/context.cljs b/frontend/src/app/main/ui/context.cljs index ed80794358..92a01bb6b4 100644 --- a/frontend/src/app/main/ui/context.cljs +++ b/frontend/src/app/main/ui/context.cljs @@ -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)) diff --git a/frontend/src/app/main/ui/workspace/shapes.cljs b/frontend/src/app/main/ui/workspace/shapes.cljs index 293492c83e..0c93d33eda 100644 --- a/frontend/src/app/main/ui/workspace/shapes.cljs +++ b/frontend/src/app/main/ui/workspace/shapes.cljs @@ -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)