mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
✨ Close swap panel after doing a swap
Some checks are pending
Commit Message Check / Check Commit Message (push) Waiting to run
Some checks are pending
Commit Message Check / Check Commit Message (push) Waiting to run
This commit is contained in:
@@ -346,7 +346,9 @@
|
|||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(mf/deps shapes file-id item)
|
(mf/deps shapes file-id item)
|
||||||
#(when-not loop
|
#(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)
|
item-ref (mf/use-ref)
|
||||||
visible? (h/use-visible item-ref :once? true)]
|
visible? (h/use-visible item-ref :once? true)]
|
||||||
|
|||||||
Reference in New Issue
Block a user