mirror of
https://github.com/penpot/penpot.git
synced 2025-05-17 06:36:10 +02:00
⚡ Add minor efficiency improvements using new call convention
This commit is contained in:
parent
d6e7a331d5
commit
c91b7606a0
1 changed files with 3 additions and 2 deletions
|
@ -246,7 +246,8 @@
|
||||||
[:& h/sortable-container {}
|
[:& h/sortable-container {}
|
||||||
[:& sets-list]])))
|
[:& sets-list]])))
|
||||||
|
|
||||||
(mf/defc themes-sets-tab
|
(mf/defc themes-sets-tab*
|
||||||
|
{::mf/private true}
|
||||||
[{:keys [resize-height]}]
|
[{:keys [resize-height]}]
|
||||||
(let [open? (mf/use-state true)
|
(let [open? (mf/use-state true)
|
||||||
on-open (mf/use-fn #(reset! open? true))
|
on-open (mf/use-fn #(reset! open? true))
|
||||||
|
@ -400,7 +401,7 @@
|
||||||
size-pages-opened :size}
|
size-pages-opened :size}
|
||||||
(use-resize-hook :tokens 200 38 "0.6" :y false nil)]
|
(use-resize-hook :tokens 200 38 "0.6" :y false nil)]
|
||||||
[:div {:class (stl/css :sidebar-wrapper)}
|
[: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)
|
[:article {:class (stl/css :tokens-section-wrapper)
|
||||||
:data-testid "tokens-sidebar"}
|
:data-testid "tokens-sidebar"}
|
||||||
[:div {:class (stl/css :resize-area-horiz)
|
[:div {:class (stl/css :resize-area-horiz)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue