client/src/components/SessionSummary.js
changeset 168 ea92f4fe783d
parent 161 a642639dbc07
child 170 7da1d5137b0b
equal deleted inserted replaced
167:1f340f3597a8 168:ea92f4fe783d
     5 import {formatTimestamp} from '../utils';
     5 import {formatTimestamp} from '../utils';
     6 
     6 
     7 const SessionSummary = ({notes}) => (
     7 const SessionSummary = ({notes}) => (
     8   <ul className="list-group sticky-left">
     8   <ul className="list-group sticky-left">
     9     {notes.map((note) =>
     9     {notes.map((note) =>
    10       <li className="list-group-item border-0" key={note.get('_id')}>
    10       <li className="list-group-item border-0" key={note._id}>
    11           <a href={'#note-' + note.get('_id')}>
    11           <a href={'#note-' + note._id}>
    12             <small className="note-time text-warning bg-success border-0 text-center">{formatTimestamp(note.startedAt)}</small>
    12             <small className="note-time text-warning bg-success border-0 text-center">{formatTimestamp(note.startedAt)}</small>
    13             <small className="note-length font-weight-bold px-2 text-muted text-center">{_.words(note.plain).length} mots</small>
    13             <small className="note-length font-weight-bold px-2 text-muted text-center">{_.words(note.plain).length} mots</small>
    14             <small className="note-time text-warning bg-success border-0 text-center">{formatTimestamp(note.finishedAt)}</small>
    14             <small className="note-time text-warning bg-success border-0 text-center">{formatTimestamp(note.finishedAt)}</small>
    15           </a>
    15           </a>
    16       </li>
    16       </li>