mirror of
https://github.com/penpot/penpot.git
synced 2025-06-11 04:51:39 +02:00
✨ Update to React 18
This commit is contained in:
parent
5ea9a52e69
commit
4b8ee8ef84
30 changed files with 396 additions and 250 deletions
|
@ -42,7 +42,10 @@
|
|||
on-zoom-fill]
|
||||
:as props}]
|
||||
(let [show-dropdown? (mf/use-state false)]
|
||||
[:div.zoom-widget {:on-click #(reset! show-dropdown? true)}
|
||||
[:div.zoom-widget {:on-click
|
||||
(fn [event]
|
||||
(dom/stop-propagation event)
|
||||
(reset! show-dropdown? true))}
|
||||
[:span.label (fmt/format-percent zoom)]
|
||||
[:span.icon i/arrow-down]
|
||||
[:& dropdown {:show @show-dropdown?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue