diff options
| author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-13 15:39:03 -0400 |
|---|---|---|
| committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-13 15:39:03 -0400 |
| commit | 6e8b40c5d78eb6d6cfb3c4d8f2d84b53e55523d0 (patch) | |
| tree | 06db91e768f7073743449594882b6a85ff10dc35 /src/reducers | |
| parent | c2810d32f5a6234c3b30b2fb709c6fdbab04f0d1 (diff) | |
Created new requests upadte that will allow for pictures to be displayed in admin console.
Diffstat (limited to 'src/reducers')
| -rw-r--r-- | src/reducers/firebaseStorage.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/reducers/firebaseStorage.js b/src/reducers/firebaseStorage.js index 1c07449..599d220 100644 --- a/src/reducers/firebaseStorage.js +++ b/src/reducers/firebaseStorage.js @@ -9,11 +9,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN */ import { + UPDATE_PICTURE } from '../actions/firebaseStorage.js'; - const firebaseStorage = (state = {}, action) => { + const firebaseStorage = (state = {pictureName: "", uploaded: false}, action) => { switch (action.type) { + case 'UPDATE_PICTURE': + return { + pictureName: action.name, + uploaded: action.uploaded + } + break; + default: return state; } |
