From 240246ea132cc736c6eaa70ed79f2ec78d1d4636 Mon Sep 17 00:00:00 2001 From: Victor Chabbert Date: Sat, 20 May 2017 15:14:13 +0200 Subject: Add prettier and format js files --- frontend/src/components/gameList.js | 28 +++++++++++++++------------- frontend/src/components/modals/username.js | 14 +++++++------- frontend/src/components/playerList.js | 24 +++++++++++++----------- 3 files changed, 35 insertions(+), 31 deletions(-) (limited to 'frontend/src/components') diff --git a/frontend/src/components/gameList.js b/frontend/src/components/gameList.js index b4167927..e1d011e1 100644 --- a/frontend/src/components/gameList.js +++ b/frontend/src/components/gameList.js @@ -1,20 +1,22 @@ -import React from 'react' -import { Flex } from 'reflexbox' -import { Text, Space, Button } from 'rebass' -import Immutable from 'seamless-immutable' +import React from "react"; +import { Flex } from "reflexbox"; +import { Text, Space, Button } from "rebass"; +import Immutable from "seamless-immutable"; -const GameList = (props) => ( +const GameList = props => (
{Immutable.asMutable(props.games).map((game, index) => { - const joinGame = () => props.joinGame(game.id) + const joinGame = () => props.joinGame(game.id); - return ( - {game.name} - - - ) + return ( + + {game.name} + + + + ); })}
-) +); -export default GameList +export default GameList; diff --git a/frontend/src/components/modals/username.js b/frontend/src/components/modals/username.js index 61b52114..826bce85 100644 --- a/frontend/src/components/modals/username.js +++ b/frontend/src/components/modals/username.js @@ -1,4 +1,4 @@ -import React from 'react' +import React from "react"; import { Overlay, Panel, @@ -8,15 +8,15 @@ import { Input, Close, Space -} from 'rebass' +} from "rebass"; const Modal = ({ modalOpen, toggleModal }) => ( - + What's your username ? - + (