client/src/components/Note.js
author Alexandre Segura <mex.zktk@gmail.com>
Thu, 01 Jun 2017 17:32:07 +0200
changeset 16 e67cd18cc594
parent 15 4a8bbd314a46
child 17 877d8796b86d
permissions -rw-r--r--
Draft implementation of note timing.

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

const Note = ({note}) => {
  return (
    <div id={"note-" + note.id}>
      {note.startedAt}  {note.finishedAt} {note.plain}
    </div>
  );
};

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

export default Note;