diff -r b2514a9bcd49 -r 4088f8dc6b52 client/src/components/SessionSummary.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/components/SessionSummary.js Tue Jun 20 16:08:12 2017 +0200 @@ -0,0 +1,30 @@ +import React, { Component } from 'react'; +import { connect } from 'react-redux'; +import { Panel, ListGroup, ListGroupItem } from 'react-bootstrap'; +import _ from 'lodash'; +import '../App.css'; + +class SessionSummary extends Component { + render() { + return ( + + + {this.props.notes.map((note) => + + + {note.startedAt} → {note.finishedAt} + {_.words(note.plain).length} words + + + )} + + + ); + } +} + +function mapStateToProps(state, props) { + return props; +} + +export default connect(mapStateToProps)(SessionSummary);