client/src/components/NotesList.js
changeset 62 b2514a9bcd49
parent 59 1eb52770eefa
child 84 bf35a7737f94
equal deleted inserted replaced
61:7586b4a11c32 62:b2514a9bcd49
    12   if (notes.size === 0) {
    12   if (notes.size === 0) {
    13     return (
    13     return (
    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 
       
    18   return (
    17   return (
    19     <div>
    18     <div>
    20       {notes.map((note) =>
    19       {notes.map((note) =>
    21         <Note note={note} key={note._id} />
    20         <Note note={note} key={note._id} />
    22       )}
    21       )}