From e181065bda45de0042fd4c8b4e36dd4457c29c5d Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Thu, 23 May 2024 09:29:17 +0200 Subject: [PATCH] Formatting --- .../workspace/sidebar/options/menus/measures.cljs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs index c74a688d8..b6162eee0 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/measures.cljs @@ -99,12 +99,15 @@ selection-parents (mf/deref selection-parents-ref) tokens (mf/deref refs/workspace-tokens) - border-radius-tokens (mf/use-memo (mf/deps tokens) #(wtc/tokens-name-map-for-type :border-radius tokens)) - border-radius-options (mf/use-memo (mf/deps shape border-radius-tokens) - #(map (fn [[_k {:keys [name] :as item}]] - (cond-> (assoc item :label name) - (wtc/token-applied? item shape (wtc/token-attributes :border-radius)) (assoc :selected? true))) - border-radius-tokens)) + border-radius-tokens (mf/use-memo + (mf/deps tokens) + #(wtc/tokens-name-map-for-type :border-radius tokens)) + border-radius-options (mf/use-memo + (mf/deps shape border-radius-tokens) + #(map (fn [[_k {:keys [name] :as item}]] + (cond-> (assoc item :label name) + (wtc/token-applied? item shape (wtc/token-attributes :border-radius)) (assoc :selected? true))) + border-radius-tokens)) flex-child? (->> selection-parents (some ctl/flex-layout?)) absolute? (ctl/item-absolute? shape)