Skip to content

Commit

Permalink
Adopt standard JS style
Browse files Browse the repository at this point in the history
  • Loading branch information
mfogel committed Nov 4, 2017
1 parent f6498dc commit 4e70751
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
30 changes: 15 additions & 15 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
import React, { Component } from 'react';
import firebase from 'firebase';
import logo from './logo.svg';
import './App.css';
import React, { Component } from 'react'
import firebase from 'firebase'
import logo from './logo.svg'
import './App.css'

class App extends Component {
render() {
render () {
const config = {
apiKey: process.env.REACT_APP_API_KEY,
authDomain: process.env.REACT_APP_PROJECT_ID + ".firebaseapp.com",
authDomain: process.env.REACT_APP_PROJECT_ID + '.firebaseapp.com',
projectId: process.env.REACT_APP_PROJECT_ID,
storageBucket: process.env.REACT_APP_PROJECT_ID + ".appspot.com",
};
const fbapp = firebase.initializeApp(config, 'travelmapaddict');
storageBucket: process.env.REACT_APP_PROJECT_ID + '.appspot.com'
}
const fbapp = firebase.initializeApp(config, 'travelmapaddict')

return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welcome to React & Firebase</h1>
<div className='App'>
<header className='App-header'>
<img src={logo} className='App-logo' alt='logo' />
<h1 className='App-title'>Welcome to React & Firebase</h1>
</header>
<h4>Firebase SDK Version: {firebase.SDK_VERSION}</h4>
<h4>Firebase Initialized App '{fbapp.name}' with config:</h4>
<ul>
{Object.keys(fbapp.options).map(key => <ul key={key}>{key}: {fbapp.options[key]}</ul>)}
</ul>
</div>
);
)
}
}

export default App;
export default App
12 changes: 6 additions & 6 deletions src/App.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'

it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
});
const div = document.createElement('div')
ReactDOM.render(<App />, div)
})
14 changes: 7 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
import registerServiceWorker from './registerServiceWorker'

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

0 comments on commit 4e70751

Please sign in to comment.