From 73ede6097d5fcd871522a87d02a0c5bc9db00464 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Sun, 29 Apr 2018 21:10:55 +0200 Subject: Remove default exports everywhere --- frontend/src/scenes/SplashScreen/components/HomeLayout.js | 4 ++-- frontend/src/scenes/SplashScreen/index.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'frontend/src/scenes/SplashScreen') 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 }) => (
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); -- cgit