aboutsummaryrefslogtreecommitdiff
path: root/src/components/mao-forums.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-forums.js
parentc518aedffdae943a84c53763629d0785043f6a3f (diff)
Updated components to work with new redux files.
Diffstat (limited to 'src/components/mao-forums.js')
-rw-r--r--src/components/mao-forums.js15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/components/mao-forums.js b/src/components/mao-forums.js
index d77329a..daa4532 100644
--- a/src/components/mao-forums.js
+++ b/src/components/mao-forums.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, createForumPost } from '../actions/firebase.js';
-
-// We are lazy loading its reducer.
-import firebase from '../reducers/firebase.js';
-
-store.addReducers({
- firebase
-});
+import { createForumPost } from '../actions/firebaseFirestore.js';
// These are the shared styles needed by this element.
import { SharedStyles } from './shared-styles.js';
@@ -127,15 +120,13 @@ class MaoForums extends connect(store)(PageViewElement) {
static get properties() { return {
// This is the data from the store.
signedIn: Boolean,
- authMessage: String,
forumPosts: Array
}}
_stateChanged(state) {
- this.signedIn = state.firebase.initialized;
- this.authMessage = state.firebase.authMessage;
+ this.signedIn = state.firebaseAuth .signedIn;
+ this.forumPosts = state.firebaseFirestore .forumPosts;
- this.forumPosts = state.firebase.forumPosts;
this.updateSection();
}