| author | ymh <ymh.work@gmail.com> |
| Thu, 22 Jun 2017 12:53:00 +0200 | |
| changeset 77 | cd27d9fc1c73 |
| parent 74 | 043477fd5c5c |
| child 78 | 49c5ea36d0a4 |
| permissions | -rw-r--r-- |
import React from 'react'; import PropTypes from 'prop-types'; import {formatTimestamp} from '../utils'; const Note = ({note}) => { return ( <div id={"note-" + note._id} className="note"> <span className="start">{formatTimestamp(note.startedAt)}</span> <span className="finish">{formatTimestamp(note.finishedAt)}</span> <div dangerouslySetInnerHTML={{ __html: note.html }} /> </div> ); }; Note.propTypes = { note: PropTypes.object.isRequired }; export default Note;