diff -r 7586b4a11c32 -r b2514a9bcd49 client/src/components/SessionList.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/components/SessionList.js Tue Jun 20 14:13:15 2017 +0200 @@ -0,0 +1,58 @@ +import React, { Component } from 'react'; +import { connect } from 'react-redux'; +import { bindActionCreators } from 'redux'; +import { Grid, Row, Col, ListGroup, ListGroupItem, Button } from 'react-bootstrap'; +import moment from 'moment'; +import '../App.css'; +import Navbar from './Navbar'; +import * as sessionsActions from '../actions/sessionsActions'; +import uuidV1 from 'uuid/v1'; + +class SessionList extends Component { + + createSession = () => { + const sessionId = uuidV1(); + this.props.sessionsActions.createSession(sessionId); + this.props.history.push('/sessions/' + sessionId); + } + + render() { + return ( +