0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-23 15:26:29 -05:00

Add minor efficiency improvements using new call convention

This commit is contained in:
Andrey Antukh 2025-02-04 20:57:36 +01:00
parent d6e7a331d5
commit c91b7606a0

View file

@ -246,7 +246,8 @@
[:& h/sortable-container {}
[:& sets-list]])))
(mf/defc themes-sets-tab
(mf/defc themes-sets-tab*
{::mf/private true}
[{:keys [resize-height]}]
(let [open? (mf/use-state true)
on-open (mf/use-fn #(reset! open? true))
@ -400,7 +401,7 @@
size-pages-opened :size}
(use-resize-hook :tokens 200 38 "0.6" :y false nil)]
[:div {:class (stl/css :sidebar-wrapper)}
[:& themes-sets-tab {:resize-height size-pages-opened}]
[:> themes-sets-tab* {:resize-height size-pages-opened}]
[:article {:class (stl/css :tokens-section-wrapper)
:data-testid "tokens-sidebar"}
[:div {:class (stl/css :resize-area-horiz)