-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |