aboutsummaryrefslogtreecommitdiff
path: root/src/components/mao-tutoring.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-tutoring.js
parentc518aedffdae943a84c53763629d0785043f6a3f (diff)
Updated components to work with new redux files.
Diffstat (limited to 'src/components/mao-tutoring.js')
-rw-r--r--src/components/mao-tutoring.js18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/components/mao-tutoring.js b/src/components/mao-tutoring.js
index 9bce4a7..eaa606c 100644
--- a/src/components/mao-tutoring.js
+++ b/src/components/mao-tutoring.js
@@ -16,14 +16,7 @@ import { connect } from 'pwa-helpers/connect-mixin.js';
import { store } from '../store.js';
//These are the actions needed by this element.
-import { requestHours } from '../actions/firebase.js';
-
-// We are lazy loading its reducer.
-import firebase from '../reducers/firebase.js';
-
-store.addReducers({
- firebase
-});
+import { requestHours } from '../actions/firebaseFirestore.js';
// These are the shared styles needed by this element.
import { SharedStyles } from './shared-styles.js';
@@ -283,17 +276,16 @@ class MaoTutoring extends connect(store)(PageViewElement) {
static get properties() { return {
// This is the data from the store.
signedIn: Boolean,
- authMessage: String,
hours: Number,
requestedHours: Number,
+
submitFieldsOpened: Boolean
}}
_stateChanged(state) {
- this.hours = state.firebase.hours;
- this.requestedHours = state.firebase.requestedHours;
- this.signedIn = state.firebase.initialized;
- this.authMessage = state.firebase.authMessage;
+ this.hours = state.firebaseFirestore .hours;
+ this.requestedHours = state.firebaseFirestore .requestedHours;
+ this.signedIn = state.firebaseAuth .signedIn;
this.sumbitFieldsOpened = false;
}