diff options
Diffstat (limited to 'src/components/mao-forums.js')
-rw-r--r-- | src/components/mao-forums.js | 15 |
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(); } |