mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 15:41:39 +02:00
✨ Close swap panel after doing a swap
This commit is contained in:
parent
1f0644ea91
commit
916eb530a0
1 changed files with 3 additions and 1 deletions
|
@ -346,7 +346,9 @@
|
|||
(mf/use-fn
|
||||
(mf/deps shapes file-id item)
|
||||
#(when-not loop
|
||||
(st/emit! (dwl/component-multi-swap shapes file-id (:id item)))))
|
||||
(st/emit!
|
||||
(dwl/component-multi-swap shapes file-id (:id item))
|
||||
(dwsp/clear-specialized-panel))))
|
||||
|
||||
item-ref (mf/use-ref)
|
||||
visible? (h/use-visible item-ref :once? true)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue