| author | Alexandre Segura <mex.zktk@gmail.com> |
| Thu, 01 Jun 2017 18:46:34 +0200 | |
| changeset 17 | 877d8796b86d |
| parent 16 | e67cd18cc594 |
| child 18 | dab2a16500e0 |
| 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}> |
|
|
17
877d8796b86d
Store serialized HTML in note.
Alexandre Segura <mex.zktk@gmail.com>
parents:
16
diff
changeset
|
7 |
<h5>{note.startedAt} ⇒ {note.finishedAt}</h5> |
|
877d8796b86d
Store serialized HTML in note.
Alexandre Segura <mex.zktk@gmail.com>
parents:
16
diff
changeset
|
8 |
<div dangerouslySetInnerHTML={{ __html: note.html }} /> |
| 1 | 9 |
</div> |
10 |
); |
|
11 |
}; |
|
12 |
||
13 |
Note.propTypes = { |
|
14 |
note: PropTypes.object.isRequired |
|
15 |
}; |
|
16 |
||
17 |
export default Note; |