aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/actions/app.js7
-rw-r--r--src/actions/firebaseAuth.js11
2 files changed, 13 insertions, 5 deletions
diff --git a/src/actions/app.js b/src/actions/app.js
index 849fadb..e0b95e3 100644
--- a/src/actions/app.js
+++ b/src/actions/app.js
@@ -26,16 +26,13 @@ export const navigate = (path) => (dispatch) => {
dispatch(updateDrawerState(false));
};
-import {snapshotForums} from './firebase.js';
+import { snapshotForums } from './firebaseFirestore.js';
var hasSubscribedPosts = false;
const loadPage = (page) => (dispatch) => {
switch(page) {
case 'home':
- import('../components/mao-home.js').then((module) => {
- // Put code in here that you want to run every time when
- // navigating to view1 after my-view1.js is loaded.
- });
+ import('../components/mao-home.js')
break;
case 'compete':
import('../components/mao-competitions.js');
diff --git a/src/actions/firebaseAuth.js b/src/actions/firebaseAuth.js
index ff49888..c80836c 100644
--- a/src/actions/firebaseAuth.js
+++ b/src/actions/firebaseAuth.js
@@ -45,6 +45,17 @@ export const createAccount = (_email, _password, divison) => (dispatch) => {
});
}
+import {
+ setUserData,
+ fetchDivison,
+ snapshotHours,
+ snapshotRegisteredCompetitions
+} from './firebaseFirestore.js';
+
+import {
+ adminListener
+} from './firebaseAdmin.js'
+
export const signIn = (_email, _password, divison) => (dispatch) => {
auth.signInWithEmailAndPassword(_email, _password).then(() => {
var user = auth.currentUser;