From 965da83c97424bce7c075ab2eb7ad943030e0db2 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Wed, 12 Jun 2024 17:14:34 +0200 Subject: [PATCH] Add workspace-tokens helper --- .../src/app/main/ui/workspace/tokens/style_dictionary.cljs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs b/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs index f52c6062f4..395176bc63 100644 --- a/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs @@ -111,6 +111,12 @@ (reset! tokens-state resolved-tokens)))))))) @tokens-state)) +(defn use-resolved-workspace-tokens + ([] (use-resolved-tokens nil)) + ([options] + (-> (mf/deref refs/workspace-tokens) + (use-resolved-tokens options)))) + ;; Testing --------------------------------------------------------------------- (defn tokens-studio-example []