summaryrefslogtreecommitdiff
path: root/frontend/src/scenes/SplashScreen
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2018-04-29 21:10:55 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2018-04-29 21:51:10 +0200
commit73ede6097d5fcd871522a87d02a0c5bc9db00464 (patch)
tree67cf69bcdd3556f73aaa419ac9a367a6fcb0b000 /frontend/src/scenes/SplashScreen
parentCleanup index.js files (diff)
downloadseven-wonders-73ede6097d5fcd871522a87d02a0c5bc9db00464.tar.gz
seven-wonders-73ede6097d5fcd871522a87d02a0c5bc9db00464.tar.bz2
seven-wonders-73ede6097d5fcd871522a87d02a0c5bc9db00464.zip
Remove default exports everywhere
Diffstat (limited to 'frontend/src/scenes/SplashScreen')
-rw-r--r--frontend/src/scenes/SplashScreen/components/HomeLayout.js4
-rw-r--r--frontend/src/scenes/SplashScreen/index.js6
2 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/scenes/SplashScreen/components/HomeLayout.js b/frontend/src/scenes/SplashScreen/components/HomeLayout.js
index 86666eb2..2a3fd856 100644
--- a/frontend/src/scenes/SplashScreen/components/HomeLayout.js
+++ b/frontend/src/scenes/SplashScreen/components/HomeLayout.js
@@ -2,11 +2,11 @@
import type { Children } from 'react';
import React from 'react';
import { Banner } from 'rebass';
-import ErrorToastContainer from '../../../components/errors/errorToastContainer';
+import { ErrorToastContainer } from '../../../components/errors/errorToastContainer';
import background from './background-zeus-temple.jpg';
import logo from './logo-7-wonders.png';
-export default ({ children }: { children: Children }) => (
+export const HomeLayout = ({ children }: { children: Children }) => (
<div>
<Banner align="center" backgroundImage={background}>
<img src={logo} alt="Seven Wonders" />
diff --git a/frontend/src/scenes/SplashScreen/index.js b/frontend/src/scenes/SplashScreen/index.js
index feff8b1e..dca8bc49 100644
--- a/frontend/src/scenes/SplashScreen/index.js
+++ b/frontend/src/scenes/SplashScreen/index.js
@@ -5,9 +5,9 @@ import { Container } from 'rebass';
import { actions } from '../../redux/players';
import { InputGroup, Button, Classes, Intent } from '@blueprintjs/core';
-import HomeLayout from './components/HomeLayout';
+import { HomeLayout } from './components/HomeLayout';
-class SplashScreen extends Component {
+class SplashScreenPresenter extends Component {
_username = '';
play = e => {
@@ -42,4 +42,4 @@ const mapDispatchToProps = {
chooseUsername: actions.chooseUsername,
};
-export default connect(null, mapDispatchToProps)(SplashScreen);
+export const SplashScreen = connect(null, mapDispatchToProps)(SplashScreenPresenter);
bgstack15