Rename dndContext --> dndProvider

This commit is contained in:
dannyrb authored and James A. Petts committed 2020-05-15 14:05:55 +02:00
1 parent 599204176c
commit d7cdc1c3ba
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ export { utils };
/** CONTEXT/HOOKS */
export {
DragAndDropContext,
DragAndDropProvider,
ModalProvider,
ModalConsumer,
useModal,
@@ -13,7 +13,7 @@ const isTouchDevice = typeof window !== `undefined` && !!('ontouchstart' in wind
* Docs:
* http://react-dnd.github.io/react-dnd/docs/api/drag-drop-context
*/
export default function DragAndDropContext({children}) {
export default function DragAndDropProvider({children}) {
const backend = isTouchDevice ? TouchBackend : HTML5Backend;
const opts = isTouchDevice ? { enableMouseEvents: true } : {};
+1 -1
View File
@@ -10,4 +10,4 @@ export {
useViewportDialog,
} from './ViewportDialogProvider';
export { default as DragAndDropContext } from './DragAndDropContext';
export { default as DragAndDropProvider } from './DragAndDropProvider';