client/src/components/NotesList.js
changeset 58 f16a080e0bc4
parent 29 4cfeabef7d5e
child 59 1eb52770eefa
equal deleted inserted replaced
57:2e4e9f9ebc4f 58:f16a080e0bc4
    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       )}