mirror of
https://github.com/penpot/penpot.git
synced 2025-06-12 22:31:39 +02:00
🚧 Use use-fn
This commit is contained in:
parent
8df780b237
commit
215fb53c52
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@
|
||||||
lib (make-lib-with-theme current-theme ordered-token-sets)
|
lib (make-lib-with-theme current-theme ordered-token-sets)
|
||||||
|
|
||||||
;; Form / Modal handlers
|
;; 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)
|
disabled? (-> (:name current-theme)
|
||||||
(str/trim)
|
(str/trim)
|
||||||
(str/empty?))
|
(str/empty?))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue