client/src/components/NotesContainer.js
changeset 2 b52921a63e77
parent 1 431977d7c9a6
child 3 3b5d37d84cfe
equal deleted inserted replaced
1:431977d7c9a6 2:b52921a63e77
     2 import {connect} from 'react-redux';
     2 import {connect} from 'react-redux';
     3 import {bindActionCreators} from 'redux';
     3 import {bindActionCreators} from 'redux';
     4 
     4 
     5 import PropTypes from 'prop-types';
     5 import PropTypes from 'prop-types';
     6 import Immutable from 'immutable';
     6 import Immutable from 'immutable';
       
     7 
       
     8 import { Grid, Row, Col} from 'react-bootstrap';
     7 
     9 
     8 import * as notesActions from '../actions/notes-actions';
    10 import * as notesActions from '../actions/notes-actions';
     9 import NotesList from './NotesList';
    11 import NotesList from './NotesList';
    10 import NoteInput from './NoteInput';
    12 import NoteInput from './NoteInput';
    11 
    13 
    12 class NotesContainer extends Component {
    14 class NotesContainer extends Component {
    13     render() {
    15     render() {
    14         const { notes } = this.props;
    16         const { notes } = this.props;
    15         return (
    17         return (
    16             <div>
    18           <Grid>
       
    19             <Row>
       
    20               <Col xs={12} md={12}>
    17                 <NotesList notes={notes} />
    21                 <NotesList notes={notes} />
       
    22               </Col>
       
    23             </Row>
       
    24             <Row>
       
    25               <Col xs={12} md={12}>
    18                 <NoteInput addNote={this.props.actions.addNote} />
    26                 <NoteInput addNote={this.props.actions.addNote} />
    19             </div>
    27               </Col>
       
    28             </Row>
       
    29           </Grid>
    20         );
    30         );
    21     }
    31     }
    22 }
    32 }
    23 
    33 
    24 NotesContainer.propTypes = {
    34 NotesContainer.propTypes = {