import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Space, InlineForm, Text } from 'rebass'; import { Flex } from 'reflexbox'; import GameList from '../components/gameList'; import { getCurrentPlayer } from '../redux/players'; import { getAllGames, actions } from '../redux/games'; class GameBrowser extends Component { createGame = e => { e.preventDefault(); if (this._gameName !== undefined) { this.props.createGame(this._gameName); } }; render() { return (