From c3c2d88245fba8386e84da79730bfc9c5bdd66c0 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 5 Sep 2023 16:43:59 +0200 Subject: [PATCH] :lipstick: Fix indentation on shapes/bool component --- frontend/src/app/main/ui/shapes/bool.cljs | 46 +++++++++++------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/frontend/src/app/main/ui/shapes/bool.cljs b/frontend/src/app/main/ui/shapes/bool.cljs index d725a00ae..1eee71753 100644 --- a/frontend/src/app/main/ui/shapes/bool.cljs +++ b/frontend/src/app/main/ui/shapes/bool.cljs @@ -17,30 +17,30 @@ (defn bool-shape [shape-wrapper] (mf/fnc bool-shape - {::mf/wrap-props false} - [props] - (let [shape (obj/get props "shape") - childs (obj/get props "childs") - childs (use-equal-memo childs) - include-metadata? (mf/use-ctx use/include-metadata-ctx) + {::mf/wrap-props false} + [props] + (let [shape (obj/get props "shape") + childs (obj/get props "childs") + childs (use-equal-memo childs) + include-metadata? (mf/use-ctx use/include-metadata-ctx) - bool-content - (mf/use-memo - (mf/deps shape childs) - (fn [] - (cond - (some? (:bool-content shape)) - (:bool-content shape) + bool-content + (mf/use-memo + (mf/deps shape childs) + (fn [] + (cond + (some? (:bool-content shape)) + (:bool-content shape) - (some? childs) - (gsh/calc-bool-content shape childs))))] + (some? childs) + (gsh/calc-bool-content shape childs))))] - [:* - (when (some? bool-content) - [:& path-shape {:shape (assoc shape :content bool-content)}]) + [:* + (when (some? bool-content) + [:& path-shape {:shape (assoc shape :content bool-content)}]) - (when include-metadata? - [:> "penpot:bool" {} - (for [item (->> (:shapes shape) (mapv #(get childs %)))] - [:& shape-wrapper {:shape item - :key (dm/str (:id item))}])])]))) + (when include-metadata? + [:> "penpot:bool" {} + (for [item (->> (:shapes shape) (mapv #(get childs %)))] + [:& shape-wrapper {:shape item + :key (dm/str (:id item))}])])])))