From fc6efa43834795e4736734bf6abf24ddeacfca00 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Sat, 15 Sep 2018 17:41:31 -0400 Subject: Created way to update accounts with username. On signin, it updates the account. Also made some changed to admin console. --- src/reducers/firebaseFirestore.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/reducers') 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; } -- cgit v1.2.3-70-g09d2