equal
deleted
inserted
replaced
1 import React from 'react'; |
1 import React from 'react'; |
2 import PropTypes from 'prop-types'; |
2 import PropTypes from 'prop-types'; |
|
3 import {formatTimestamp} from '../utils'; |
3 |
4 |
4 const Note = ({note}) => { |
5 const Note = ({note}) => { |
5 return ( |
6 return ( |
6 <div id={"note-" + note._id} className="note"> |
7 <div id={"note-" + note._id} className="note"> |
7 <span className="start">{note.startedAt}</span> |
8 <span className="start">{formatTimestamp(note.startedAt)}</span> |
8 <span className="finish">{note.finishedAt}</span> |
9 <span className="finish">{formatTimestamp(note.finishedAt)}</span> |
9 <div dangerouslySetInnerHTML={{ __html: note.html }} /> |
10 <div dangerouslySetInnerHTML={{ __html: note.html }} /> |
10 </div> |
11 </div> |
11 ); |
12 ); |
12 }; |
13 }; |
13 |
14 |