mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 12:51:38 +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)
|
||||
|
||||
;; 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?))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue