From 170a51f9e5bfd055038c2fce49a77aa61c0ff1e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Thu, 9 Jan 2025 14:52:24 +0100 Subject: [PATCH] :wrench: Fix merge --- .../app/main/ui/workspace/tokens/sidebar.cljs | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs b/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs index 91865507f..b516fc806 100644 --- a/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/sidebar.cljs @@ -46,31 +46,6 @@ ;; Components ------------------------------------------------------------------ -(mf/defc token-pill - {::mf/wrap-props false} - [{:keys [on-click token theme-token highlighted? on-context-menu]}] - (let [{:keys [name value resolved-value errors]} token - errors? (and (seq errors) (seq (:errors theme-token)))] - [:button - {:class (stl/css-case :token-pill true - :token-pill-highlighted highlighted? - :token-pill-invalid errors?) - :title (cond - errors? (sd/humanize-errors token) - :else (->> [(str "Token: " name) - (str (tr "workspace.token.original-value") value) - (str (tr "workspace.token.resolved-value") resolved-value)] - (str/join "\n"))) - :on-click on-click - :on-context-menu on-context-menu - :disabled errors?} - (when-let [color (if (seq (ctob/find-token-value-references (:value token))) - (wtt/resolved-value-hex theme-token) - (wtt/resolved-value-hex token))] - [:& color-bullet {:color color - :mini true}]) - name])) - (mf/defc token-section-icon {::mf/wrap-props false} [{:keys [type]}]