From 215fb53c520a65a580aa412793aa5f839ce2b508 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Tue, 1 Apr 2025 14:46:49 +0200 Subject: [PATCH] :construction: Use use-fn --- frontend/src/app/main/ui/workspace/tokens/modals/themes.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/modals/themes.cljs b/frontend/src/app/main/ui/workspace/tokens/modals/themes.cljs index 33ba86b5bb..eaf6763fcf 100644 --- a/frontend/src/app/main/ui/workspace/tokens/modals/themes.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/modals/themes.cljs @@ -258,7 +258,7 @@ lib (make-lib-with-theme current-theme ordered-token-sets) ;; Form / Modal handlers - on-back #(set-state (constantly {:type :themes-overview})) + on-back (mf/use-fn #(set-state (constantly {:type :themes-overview}))) disabled? (-> (:name current-theme) (str/trim) (str/empty?))