From 66d727504aeba48638f98dbc9948ac2adf78f8a1 Mon Sep 17 00:00:00 2001 From: Victor Chabbert Date: Mon, 29 May 2017 21:50:54 +0200 Subject: Change type imports --- frontend/src/layouts/HomeLayout.js | 3 ++- frontend/src/layouts/LobbyLayout.js | 3 ++- frontend/src/redux/games.js | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'frontend') diff --git a/frontend/src/layouts/HomeLayout.js b/frontend/src/layouts/HomeLayout.js index 61eef427..33167679 100644 --- a/frontend/src/layouts/HomeLayout.js +++ b/frontend/src/layouts/HomeLayout.js @@ -1,5 +1,6 @@ // @flow -import React, { type Children } from 'react'; +import React from 'react'; +import type { Children } from 'react'; import { Banner } from 'rebass'; import logo from './logo-7-wonders.png'; import background from './background-zeus-temple.jpg'; diff --git a/frontend/src/layouts/LobbyLayout.js b/frontend/src/layouts/LobbyLayout.js index 865641dd..29d99e1b 100644 --- a/frontend/src/layouts/LobbyLayout.js +++ b/frontend/src/layouts/LobbyLayout.js @@ -1,4 +1,5 @@ -import React, { type Children } from 'react'; +import React from 'react'; +import type { Children } from 'react'; import { Banner } from 'rebass'; import logo from './logo-7-wonders.png'; import ErrorToastContainer from '../components/errors/errorToastContainer'; diff --git a/frontend/src/redux/games.js b/frontend/src/redux/games.js index f2df2492..6cc8f4c5 100644 --- a/frontend/src/redux/games.js +++ b/frontend/src/redux/games.js @@ -1,7 +1,7 @@ // @flow import { fromJS } from 'immutable'; -import GamesState, { type GameMapType, type GameNormalMapType, type GameShape } from '../models/games'; - +import GamesState from '../models/games'; +import type { GameMapType, GameNormalMapType, GameShape } from "../models/games"; export const types = { UPDATE_GAMES: 'GAME/UPDATE_GAMES', REQUEST_CREATE_GAME: 'GAME/REQUEST_CREATE_GAME', -- cgit