client/src/components/Note.js
changeset 18 dab2a16500e0
parent 17 877d8796b86d
child 33 238818343253
equal deleted inserted replaced
17:877d8796b86d 18:dab2a16500e0
     1 import React from 'react';
     1 import React from 'react';
     2 import PropTypes from 'prop-types';
     2 import PropTypes from 'prop-types';
     3 
     3 
     4 const Note = ({note}) => {
     4 const Note = ({note}) => {
     5   return (
     5   return (
     6     <div id={"note-" + note.id}>
     6     <div id={"note-" + note.id} className="note">
     7       <h5>{note.startedAt} ⇒ {note.finishedAt}</h5>
     7       <span className="start">{note.startedAt}</span>
       
     8       <span className="finish">{note.finishedAt}</span>
     8       <div dangerouslySetInnerHTML={{ __html: note.html }} />
     9       <div dangerouslySetInnerHTML={{ __html: note.html }} />
     9     </div>
    10     </div>
    10   );
    11   );
    11 };
    12 };
    12 
    13