add api call to save notes. internally use ts for time data for notes and session
import React from 'react';
import PropTypes from 'prop-types';
import {formatTimestamp} from '../utils';
const Note = ({note}) => {
return (
<div id={"note-" + note._id} className="note">
<span className="start">{formatTimestamp(note.startedAt)}</span>
<span className="finish">{formatTimestamp(note.finishedAt)}</span>
<div dangerouslySetInnerHTML={{ __html: note.html }} />
</div>
);
};
Note.propTypes = {
note: PropTypes.object.isRequired
};
export default Note;