aboutsummaryrefslogtreecommitdiff
path: root/src/components/mao-admin.js
diff options
context:
space:
mode:
authorMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-08-05 00:11:07 -0400
committerMichael Foiani <mfoiani2019@communiyschoolnaples.org>2018-08-05 00:11:07 -0400
commit2f1f4a56e141acdddd00d534f70ed5fad91a217a (patch)
tree358f932321913d65925bd6d133d3ef9638801089 /src/components/mao-admin.js
parentc518aedffdae943a84c53763629d0785043f6a3f (diff)
Updated components to work with new redux files.
Diffstat (limited to 'src/components/mao-admin.js')
-rw-r--r--src/components/mao-admin.js18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/components/mao-admin.js b/src/components/mao-admin.js
index 12a9e16..fc67cc2 100644
--- a/src/components/mao-admin.js
+++ b/src/components/mao-admin.js
@@ -15,16 +15,6 @@ import { connect } from 'pwa-helpers/connect-mixin.js';
// This element is connected to the Redux store.
import { store } from '../store.js';
-//These are the actions needed by this element.
-//import { approveHours } from '../actions/firebase.js';
-
-// We are lazy loading its reducer.
-import firebase from '../reducers/firebase.js';
-
-store.addReducers({
- firebase
-});
-
// These are the shared styles needed by this element.
import { SharedStyles } from './shared-styles.js';
import { ButtonSharedStyles } from './button-shared-styles.js'
@@ -122,11 +112,11 @@ class MaoAdmin extends connect(store)(PageViewElement) {
}}
_stateChanged(state) {
- this.signedIn = state.firebase.initialized;
- this.isAdmin = state.firebase.isAdmin;
+ this.signedIn = state.firebaseAuth .signedIn;
+ this.isAdmin = state.firebaseAdmin .isAdmin;
- this.requests = state.firebase.requests;
- this.registry = state.firebase.compList;
+ this.requests = state.firebaseAdmin .requests;
+ this.registry = state.firebaseAdmin .compList;
this.updateInformation();
}