client/src/components/NotesList.js
changeset 18 dab2a16500e0
parent 12 48ddaa42b810
child 19 f1b125b95fe9
equal deleted inserted replaced
17:877d8796b86d 18:dab2a16500e0
    14       <Alert bsStyle="warning">No notes yet. Add notes with the textarea below.</Alert>
    14       <Alert bsStyle="warning">No notes yet. Add notes with the textarea below.</Alert>
    15     );
    15     );
    16   }
    16   }
    17 
    17 
    18   return (
    18   return (
    19     <ListGroup>
    19     <div>
    20       {notes.map((note) =>
    20       {notes.map((note) =>
    21         <ListGroupItem key={note.id}><Note note={note} /></ListGroupItem>
    21         <Note note={note} />
    22       )}
    22       )}
    23     </ListGroup>
    23     </div>
    24   );
    24   );
    25 };
    25 };
    26 
    26 
    27 NotesList.propTypes = {
    27 NotesList.propTypes = {
    28   notes: PropTypes.instanceOf(Immutable.List).isRequired
    28   notes: PropTypes.instanceOf(Immutable.List).isRequired