|
@@ -14,20 +14,8 @@ import { Provider} from 'react-redux'
|
14
|
14
|
import { createStore, applyMiddleware } from 'redux';
|
15
|
15
|
import rootReducer from './redux/reducers'
|
16
|
16
|
import thunk from 'redux-thunk'
|
17
|
|
-/*import { connect } from 'react-redux'
|
18
|
|
-import { bindActionCreators } from 'redux'
|
19
|
|
-import { fetchUser } from './redux/actions/index'*/
|
20
|
|
-/*const seConfig = {
|
21
|
|
- apiKey: "AIzaSyDW-ABAQ3r_WR7C7WC_3VprL77NcAoitJI",
|
22
|
|
- authDomain: "freehand-d8ecd.firebaseapp.com",
|
23
|
|
- projectId: "freehand-d8ecd",
|
24
|
|
- storageBucket: "freehand-d8ecd.appspot.com",
|
25
|
|
- messagingSenderId: "48371388186",
|
26
|
|
- appId: "1:48371388186:web:9a5a4bf1218e17ac6326a3"
|
27
|
|
-};
|
28
|
|
-*/
|
29
|
|
-// Initialize Firebase
|
30
|
|
-//const app = firebase.initializeApp(seConfig);
|
|
17
|
+
|
|
18
|
+
|
31
|
19
|
if (firebase.apps.length === 0) {
|
32
|
20
|
firebase.initializeApp(firebaseConfig)
|
33
|
21
|
}
|
|
@@ -96,10 +84,4 @@ export class App extends Component {
|
96
|
84
|
}
|
97
|
85
|
}
|
98
|
86
|
|
99
|
|
-export default App
|
100
|
|
-/*const mapStateToProps = (store) => ({
|
101
|
|
- currentUser: store.userState.currentUser
|
102
|
|
-})
|
103
|
|
-const mapDispatchProps = (dispatch) => bindActionCreators({fetchUser}, dispatch);
|
104
|
|
-
|
105
|
|
-export default connect(mapStateToProps, mapDispatchProps)(App);*/
|
|
87
|
+export default App
|