mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 16:21:39 +02:00
➕ Add React-DnD dependency bundle.
This commit is contained in:
parent
fcc7351552
commit
dbf754880e
10 changed files with 4309 additions and 3 deletions
14
frontend/src/uxbox/util/rdnd.cljs
Normal file
14
frontend/src/uxbox/util/rdnd.cljs
Normal file
|
@ -0,0 +1,14 @@
|
|||
;; This Source Code Form is subject to the terms of the Mozilla Public
|
||||
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
;;
|
||||
;; Copyright (c) 2019 Andrey Antukh <niwi@niwi.nz>
|
||||
|
||||
(ns uxbox.util.rdnd
|
||||
(:require [vendor.react-dnd]))
|
||||
|
||||
(def useDrop js/ReactDnd.useDrop)
|
||||
(def useDrag js/ReactDnd.useDrag)
|
||||
|
||||
(def provider js/ReactDnd.DndProvider)
|
||||
(def html5 js/ReactDnd.HTML5Backend)
|
Loading…
Add table
Add a link
Reference in a new issue