Skip to content
Prev Previous commit
Next Next commit
Run through our eslint.
  • Loading branch information
tylergraf committed May 7, 2019
commit 78c9f0e4e8e873a0fb476739dad875a44397e16d
28 changes: 13 additions & 15 deletions packages/react-scripts/template/src/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import React from 'react';
import ReactDOM from 'react-dom';
import Root from '@fs/zion-root';
import { addTranslations } from '@fs/zion-locale';
import { Router, NotFound } from '@fs/zion-router';
import App from './components/App';
import * as serviceWorker from './serviceWorker';
import translations from './locales';
import React from 'react'
import ReactDOM from 'react-dom'
import Root from '@fs/zion-root'
import { addTranslations } from '@fs/zion-locale'
import { Router, NotFound } from '@fs/zion-router'
import App from './components/App'
import * as serviceWorker from './serviceWorker'
import translations from './locales'

addTranslations(translations);
addTranslations(translations)

const base = window.SERVER_DATA
? new URL(window.SERVER_DATA.appPath).pathname
: '';
const base = window.SERVER_DATA ? new URL(window.SERVER_DATA.appPath).pathname : ''

const FrontierRoot = () => (
<Root>
Expand All @@ -20,11 +18,11 @@ const FrontierRoot = () => (
<NotFound default />
</Router>
</Root>
);
)

ReactDOM.render(<FrontierRoot />, document.getElementById('root'));
ReactDOM.render(<FrontierRoot />, document.getElementById('root'))

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
serviceWorker.unregister()