| 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-- |
| 1 | 1 |
import React from 'react'; |
2 |
import PropTypes from 'prop-types'; |
|
3 |
||
4 |
const Note = ({note}) => { |
|
5 |
return ( |
|
6 |
<div id={"note-" + note.id}> |
|
|
16
e67cd18cc594
Draft implementation of note timing.
Alexandre Segura <mex.zktk@gmail.com>
parents:
15
diff
changeset
|
7 |
{note.startedAt} ⇒ {note.finishedAt} {note.plain} |
| 1 | 8 |
</div> |
9 |
); |
|
10 |
}; |
|
11 |
||
12 |
Note.propTypes = { |
|
13 |
note: PropTypes.object.isRequired |
|
14 |
}; |
|
15 |
||
16 |
export default Note; |