diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-29 21:10:55 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-29 21:51:10 +0200 |
commit | 73ede6097d5fcd871522a87d02a0c5bc9db00464 (patch) | |
tree | 67cf69bcdd3556f73aaa419ac9a367a6fcb0b000 /frontend/src/components | |
parent | Cleanup index.js files (diff) | |
download | seven-wonders-73ede6097d5fcd871522a87d02a0c5bc9db00464.tar.gz seven-wonders-73ede6097d5fcd871522a87d02a0c5bc9db00464.tar.bz2 seven-wonders-73ede6097d5fcd871522a87d02a0c5bc9db00464.zip |
Remove default exports everywhere
Diffstat (limited to 'frontend/src/components')
-rw-r--r-- | frontend/src/components/errors/Error404.js | 3 | ||||
-rw-r--r-- | frontend/src/components/errors/errorToastContainer.js | 4 | ||||
-rw-r--r-- | frontend/src/components/gameList.js | 4 | ||||
-rw-r--r-- | frontend/src/components/modals/username.js | 4 | ||||
-rw-r--r-- | frontend/src/components/playerList.js | 4 |
5 files changed, 5 insertions, 14 deletions
diff --git a/frontend/src/components/errors/Error404.js b/frontend/src/components/errors/Error404.js index 9a5e005e..07046632 100644 --- a/frontend/src/components/errors/Error404.js +++ b/frontend/src/components/errors/Error404.js @@ -1,7 +1,7 @@ import React from 'react'; import { Link } from 'react-router-dom'; -const Error404 = () => ( +export const Error404 = () => ( <div> <h1>No Match</h1> <Link to="/"> @@ -9,4 +9,3 @@ const Error404 = () => ( </Link> </div> ); -export default Error404; diff --git a/frontend/src/components/errors/errorToastContainer.js b/frontend/src/components/errors/errorToastContainer.js index 65711073..d8da6af6 100644 --- a/frontend/src/components/errors/errorToastContainer.js +++ b/frontend/src/components/errors/errorToastContainer.js @@ -2,8 +2,6 @@ import React from 'react'; import ReduxToastr from 'react-redux-toastr'; import './react-redux-toastr.min.css'; -const ErrorToastContainer = props => ( +export const ErrorToastContainer = props => ( <ReduxToastr timeOut={4000} preventDuplicates position="bottom-left" progressBar /> ); - -export default ErrorToastContainer; diff --git a/frontend/src/components/gameList.js b/frontend/src/components/gameList.js index 0a478b96..0b4091a7 100644 --- a/frontend/src/components/gameList.js +++ b/frontend/src/components/gameList.js @@ -5,7 +5,7 @@ import { Button, Space, Text } from 'rebass'; import { Flex } from 'reflexbox'; import type { Game } from '../models/games'; -const GameList = ({ games, joinGame }: { games: List<Game>, joinGame: (gameId: string) => void }) => ( +export const GameList = ({ games, joinGame }: { games: List<Game>, joinGame: (gameId: string) => void }) => ( <div> {games.map((game: Game, index: number) => { return ( @@ -18,5 +18,3 @@ const GameList = ({ games, joinGame }: { games: List<Game>, joinGame: (gameId: s })} </div> ); - -export default GameList; diff --git a/frontend/src/components/modals/username.js b/frontend/src/components/modals/username.js index 19b7eeb0..f6127667 100644 --- a/frontend/src/components/modals/username.js +++ b/frontend/src/components/modals/username.js @@ -1,7 +1,7 @@ import React from 'react'; import { Button, Close, Input, Overlay, Panel, PanelFooter, PanelHeader, Space } from 'rebass'; -const Modal = ({ modalOpen, toggleModal }) => ( +export const Modal = ({ modalOpen, toggleModal }) => ( <Overlay open={modalOpen} onDismiss={toggleModal('usernameModal')}> <Panel theme="info"> <PanelHeader> @@ -17,5 +17,3 @@ const Modal = ({ modalOpen, toggleModal }) => ( </Panel> </Overlay> ); - -export default Modal; diff --git a/frontend/src/components/playerList.js b/frontend/src/components/playerList.js index 4ddbe056..cc247668 100644 --- a/frontend/src/components/playerList.js +++ b/frontend/src/components/playerList.js @@ -2,7 +2,7 @@ import React from 'react'; import { Text } from 'rebass'; import { Flex } from 'reflexbox'; -const PlayerList = ({ players }) => ( +export const PlayerList = ({ players }) => ( <div> {players.map(player => { return ( @@ -14,5 +14,3 @@ const PlayerList = ({ players }) => ( })} </div> ); - -export default PlayerList; |