Guest User

Untitled

a guest
Apr 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. // App.js
  2.  
  3. import React, { Component } from 'react';
  4. import { Grid } from 'semantic-ui-react';
  5. import MainView from './MainView';
  6. import ItemList from './ItemList';
  7.  
  8. class App extends Component {
  9. constructor(props) {
  10. super(props);
  11. this.onDragEnd = this.onDragEnd.bind(this);
  12. }
  13.  
  14. onDragEnd(result) {
  15. if (!result.destination) {
  16. return;
  17. }
  18. // reorder the destination list
  19. // set the state of the destination component
  20. }
  21.  
  22. render() {
  23. return (
  24. <div className="App">
  25. <DragDropContext onDragEnd={this.onDragEnd}>
  26. <Grid columns={2}>
  27. <Grid.Column width={13}>
  28. <MainView />
  29. </Grid.Column>
  30. <Grid.Column width={3}>
  31. <ItemList />
  32. </Grid.Column>
  33. </Grid>
  34. </DragDropContext>
  35. </div>
  36. );
  37. }
  38. }
  39.  
  40. export default App;
Add Comment
Please, Sign In to add comment