mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 06:41:38 +02:00
♻️ Refactor drag-and-drop on workspace sidebars (now using react-dnd).
This commit is contained in:
parent
dbf754880e
commit
03c9d9c8f1
11 changed files with 250 additions and 422 deletions
|
@ -118,7 +118,7 @@
|
|||
(mf/defc grid-item-thumbnail
|
||||
[{:keys [project] :as props}]
|
||||
(let [url (mf/use-state nil)]
|
||||
(mf/use-effect
|
||||
#_(mf/use-effect
|
||||
{:deps #js [(:page-id project)]
|
||||
:init (fn []
|
||||
(when-let [page-id (:page-id project)]
|
||||
|
@ -160,7 +160,8 @@
|
|||
(dom/prevent-default %)
|
||||
(swap! local assoc :edition true))]
|
||||
[:div.grid-item.project-th {:on-click on-navigate}
|
||||
[:& grid-item-thumbnail {:project project :key (select-keys project [:id :page-id])}]
|
||||
[:& grid-item-thumbnail {:project project
|
||||
:key (select-keys project [:id :page-id])}]
|
||||
[:div.item-info
|
||||
(if (:edition @local)
|
||||
[:input.element-name {:type "text"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue