diff -r 6fb4de54acea -r 48ddaa42b810 client/src/components/NotesContainer.js --- a/client/src/components/NotesContainer.js Wed May 31 17:28:12 2017 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -import React, { Component } from 'react'; -import {connect} from 'react-redux'; -import {bindActionCreators} from 'redux'; - -import PropTypes from 'prop-types'; -import Immutable from 'immutable'; - -import { Grid, Row, Col} from 'react-bootstrap'; - -import * as notesActions from '../actions/notesActions'; -import NotesList from './NotesList'; -import NoteInput from './NoteInput'; - -class NotesContainer extends Component { - render() { - const { notes } = this.props; - return ( - - - - - - - - - - - - - ); - } -} - -NotesContainer.propTypes = { - notes: PropTypes.instanceOf(Immutable.List).isRequired, - actions: PropTypes.object.isRequired -} - -function mapStateToProps(state, props) { - return { - notes: state.get('notes') - }; -} - -function mapDispatchToProps(dispatch) { - return { - actions: bindActionCreators(notesActions, dispatch) - } -} - - -export default connect(mapStateToProps, mapDispatchToProps)(NotesContainer); \ No newline at end of file