Rename dndContext --> dndProvider

This commit is contained in:
dannyrb 2020-05-14 22:03:38 -04:00 committed by James A. Petts
parent 599204176c
commit d7cdc1c3ba
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ export { utils };
/** CONTEXT/HOOKS */
export {
DragAndDropContext,
DragAndDropProvider,
ModalProvider,
ModalConsumer,
useModal,

View File

@ -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 } : {};

View File

@ -10,4 +10,4 @@ export {
useViewportDialog,
} from './ViewportDialogProvider';
export { default as DragAndDropContext } from './DragAndDropContext';
export { default as DragAndDropProvider } from './DragAndDropProvider';