aboutsummaryrefslogtreecommitdiff
path: root/src/components/mao-tutoring.js
diff options
context:
space:
mode:
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;
}