Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fix(client-entry): remove flowtypes
Browse files Browse the repository at this point in the history
fix(client-entry): remove flowtypes
  • Loading branch information
Metnew committed Feb 18, 2018
1 parent 22e28bc commit bffb163
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/client/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// import 'semantic-ui-css/semantic.css'
// If you want only some components from SUI:
import 'semantic-ui-css/components/button.css'
// import 'semantic-ui-css/components/card.css'
import 'semantic-ui-css/components/container.css'
import 'semantic-ui-css/components/dimmer.css'
import 'semantic-ui-css/components/divider.css'
Expand All @@ -31,16 +30,14 @@ import {AsyncComponentProvider} from 'react-async-component'
import asyncBootstrapper from 'react-async-bootstrapper'
import {configureApp, configureRootComponent} from 'common/app'
import {AppContainer} from 'react-hot-loader'
import type {GlobalState} from 'reducers'
import type {i18nConfigObject} from 'types'

if (process.env.NODE_ENV === 'production') {
require('common/pwa')
}

const initialState: GlobalState = window.__INITIAL_STATE__ || {}
const i18n: i18nConfigObject = window.__I18N__ || {}
const asyncState: Object = window.__ASYNC_STATE__ || {}
const initialState = window.__INITIAL_STATE__ || {}
const i18n = window.__I18N__ || {}
const asyncState = window.__ASYNC_STATE__ || {}

const {store, routes, history} = configureApp(initialState)
const RootComponent = configureRootComponent({
Expand All @@ -59,6 +56,7 @@ const app = (
)

asyncBootstrapper(app).then(() => {
console.log('__INITIAL_STATE__:', initialState)
hydrate(app, document.getElementById('app'))
})

Expand Down

0 comments on commit bffb163

Please sign in to comment.