Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
86 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
'use strict'; | ||
|
||
import { Component, PropTypes } from 'react'; | ||
|
||
export default function configureDragDrop(InnerComponent, registerHandlers, pickProps) { | ||
class DragDropContainer extends Component { | ||
constructor(props, context) { | ||
super(props, context); | ||
|
||
//const manager = context.dragDrop; | ||
this.state = { | ||
// TODO | ||
}; | ||
} | ||
|
||
render() { | ||
return <InnerComponent {...this.props} {...this.state} />; | ||
} | ||
} | ||
|
||
DragDropContainer.contextTypes = { | ||
dragDrop: PropTypes.object.isRequired | ||
}; | ||
|
||
return DragDropContainer; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
export { default as HTML5Backend } from './backends/HTML5'; | ||
export { default as DragSource } from './ReactDragSource'; | ||
export { default as DropTarget } from './ReactDropTarget'; | ||
export { default as NativeTypes } from './NativeTypes'; | ||
export { default as configureDragDrop } from './configureDragDrop'; | ||
|
||
// We want need those after React 0.14: | ||
export { default as DragDropContext } from './DragDropContext'; | ||
export { default as ObservePolyfill } from './ObservePolyfill'; |