diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-07-25 00:08:26 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-07-25 00:08:26 +0200 |
commit | cf67eff86ef9a027c3247463d13b340644a0bb8c (patch) | |
tree | 5f4faa42ccb8308bbefe6fe55eea74294be053a8 /frontend/src/containers | |
parent | Improve sevenWondersApi and types (diff) | |
download | seven-wonders-cf67eff86ef9a027c3247463d13b340644a0bb8c.tar.gz seven-wonders-cf67eff86ef9a027c3247463d13b340644a0bb8c.tar.bz2 seven-wonders-cf67eff86ef9a027c3247463d13b340644a0bb8c.zip |
Organize imports and format JS files
Diffstat (limited to 'frontend/src/containers')
-rw-r--r-- | frontend/src/containers/gameBrowser.js | 13 | ||||
-rw-r--r-- | frontend/src/containers/lobby.js | 5 |
2 files changed, 7 insertions, 11 deletions
diff --git a/frontend/src/containers/gameBrowser.js b/frontend/src/containers/gameBrowser.js index b654e9d9..a21d2e29 100644 --- a/frontend/src/containers/gameBrowser.js +++ b/frontend/src/containers/gameBrowser.js @@ -1,17 +1,14 @@ // @flow -import React, { Component } from 'react'; - import type { List } from 'immutable'; -import type { Games } from '../models/games'; -import type { Player } from '../models/players'; - +import React, { Component } from 'react'; import { connect } from 'react-redux'; -import { Space, InlineForm, Text } from 'rebass'; +import { InlineForm, Space, Text } from 'rebass'; import { Flex } from 'reflexbox'; import GameList from '../components/gameList'; - +import type { Games } from '../models/games'; +import type { Player } from '../models/players'; +import { actions, getAllGames } from '../redux/games'; import { getCurrentPlayer } from '../redux/players'; -import { getAllGames, actions } from '../redux/games'; class GameBrowser extends Component { props: { diff --git a/frontend/src/containers/lobby.js b/frontend/src/containers/lobby.js index fc762056..bf0cb031 100644 --- a/frontend/src/containers/lobby.js +++ b/frontend/src/containers/lobby.js @@ -1,11 +1,10 @@ -import React, { Component } from 'react'; import { List } from 'immutable'; +import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Button } from 'rebass'; import PlayerList from '../components/playerList'; - +import { actions, getCurrentGame } from '../redux/games'; import { getPlayers } from '../redux/players'; -import { getCurrentGame, actions } from '../redux/games'; class Lobby extends Component { getTitle() { |