client/src/components/Note.js
author ymh <ymh.work@gmail.com>
Tue, 20 Jun 2017 21:56:42 +0200
changeset 67 9206af01f5e5
parent 33 238818343253
child 74 043477fd5c5c
permissions -rw-r--r--
Change to UserRecord

import React from 'react';
import PropTypes from 'prop-types';

const Note = ({note}) => {
  return (
    <div id={"note-" + note._id} className="note">
      <span className="start">{note.startedAt}</span>
      <span className="finish">{note.finishedAt}</span>
      <div dangerouslySetInnerHTML={{ __html: note.html }} />
    </div>
  );
};

Note.propTypes = {
  note: PropTypes.object.isRequired
};

export default Note;