client/src/components/ProtocolSummary.js
author ymh <ymh.work@gmail.com>
Mon, 08 Oct 2018 18:35:47 +0200
changeset 168 ea92f4fe783d
parent 165 62e5be0df812
child 170 7da1d5137b0b
permissions -rw-r--r--
- move SlateEditor and dependencies to its own folder - remove Immutable - remove redux-persist-immutable - remobe redux-immutable - update libraries - added tests on store manipulations (accessor and reducers)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
165
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
     1
import React, { Component } from 'react';
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
     2
import '../App.css';
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
     3
import './SessionSummary.css'
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
     4
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
     5
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
     6
// const SessionSummary = ({notes}) => (
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
     7
//   <ul className="list-group sticky-left">
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
     8
//     {notes.map((note) =>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
     9
//       <li className="list-group-item border-0" key={note.get('_id')}>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    10
//           <a href={'#note-' + note.get('_id')}>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    11
//             <small className="note-time text-warning bg-success border-0 text-center">{formatTimestamp(note.startedAt)}</small>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    12
//             <small className="note-length font-weight-bold px-2 text-muted text-center">{_.words(note.plain).length} mots</small>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    13
//             <small className="note-time text-warning bg-success border-0 text-center">{formatTimestamp(note.finishedAt)}</small>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    14
//           </a>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    15
//       </li>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    16
//     )}
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    17
//   </ul>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    18
// )
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    19
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    20
export default class ProtocolSummary extends Component {
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    21
  render() {
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    22
    return (
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    23
      <div className="mt-5">
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    24
        <div>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    25
        <span className="bg-primary">important</span>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    26
        <p className="text-primary">la métacatégorie important</p>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    27
        </div>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    28
        <div>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    29
        <span className="bg-primary">mot-clé</span>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    30
        <p className="text-primary">la métacatégorie mot-clé</p>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    31
        </div>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    32
        <div>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    33
        <span className="bg-primary">commentaire</span>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    34
        <p className="text-primary">la métacatégorie commentaire</p>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    35
        </div>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    36
        <div>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    37
        <span className="bg-primary">trouble</span>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    38
        <p className="text-primary">la métacatégorie trouble</p>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    39
        </div>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    40
      </div>
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    41
    );
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    42
  }
62e5be0df812 Add ProtocolSummary component
salimr <riwad.salim@yahoo.fr>
parents:
diff changeset
    43
}