aboutsummaryrefslogtreecommitdiff
path: root/src/reducers
diff options
context:
space:
mode:
authorMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-09-15 17:41:31 -0400
committerMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-09-15 17:41:31 -0400
commitfc6efa43834795e4736734bf6abf24ddeacfca00 (patch)
tree369e481c8e265acf065c0e652a0c932b043d144e /src/reducers
parent7073f6545544277673c0806606834225907797d7 (diff)
Created way to update accounts with username. On signin, it updates the account. Also made some changed to admin console.
Diffstat (limited to 'src/reducers')
-rw-r--r--src/reducers/firebaseFirestore.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/reducers/firebaseFirestore.js b/src/reducers/firebaseFirestore.js
index 43b5f87..8ea946f 100644
--- a/src/reducers/firebaseFirestore.js
+++ b/src/reducers/firebaseFirestore.js
@@ -12,11 +12,12 @@ import {
UPDATE_DIVISON,
UPDATE_HOURS,
UPDATE_REGISTERED_COMPETITIONS,
- UPDATE_FORUM_POSTS
+ UPDATE_FORUM_POSTS,
+ UPDATE_NOTIFICATION
}
from '../actions/firebaseFirestore.js';
-const firebaseFirestore = (state = {hours: -1, requestedHours: -1, registeredComps: [], forumPosts: []}, action) => {
+const firebaseFirestore = (state = {hours: -1, requestedHours: -1, registeredComps: [], forumPosts: [], isAdminUpdate: false}, action) => {
switch (action.type) {
case UPDATE_DIVISON:
@@ -48,6 +49,13 @@ const firebaseFirestore = (state = {hours: -1, requestedHours: -1, registeredCom
}
break;
+ case UPDATE_NOTIFICATION:
+ return {
+ ...state,
+ isAdminUpdate : action.payload
+ }
+ break;
+
default:
return state;
}