diff options
author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-05 00:11:07 -0400 |
---|---|---|
committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-05 00:11:07 -0400 |
commit | 2f1f4a56e141acdddd00d534f70ed5fad91a217a (patch) | |
tree | 358f932321913d65925bd6d133d3ef9638801089 /src/components/mao-account.js | |
parent | c518aedffdae943a84c53763629d0785043f6a3f (diff) |
Updated components to work with new redux files.
Diffstat (limited to 'src/components/mao-account.js')
-rw-r--r-- | src/components/mao-account.js | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/components/mao-account.js b/src/components/mao-account.js index 2f35717..5e128f1 100644 --- a/src/components/mao-account.js +++ b/src/components/mao-account.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 { signIn, signOut, requestHours, createAccount } from '../actions/firebase.js'; - -// We are lazy loading its reducer. -import firebase from '../reducers/firebase.js'; - -store.addReducers({ - firebase -}); +import { signIn, signOut, createAccount } from '../actions/firebaseAuth.js'; // These are the shared styles needed by this element. import { SharedStyles } from './shared-styles.js'; @@ -78,7 +71,7 @@ class MaoAccount extends connect(store)(PageViewElement) { <div class="card-content"> <h2 class="underline">Sign In</h2> - + <paper-input name="username" type="text" label="username" id="emailField"> </paper-input> @@ -162,11 +155,11 @@ class MaoAccount extends connect(store)(PageViewElement) { }} _stateChanged(state) { - this.signedIn = state.firebase.initialized; - this.userEmail = state.firebase.userEmail; - this.divison = state.firebase.divison; + this.signedIn = state.firebaseAuth .signedIn; + this.userEmail = state.firebaseAuth .userEmail; + this.divison = state.firebaseFirestore .divison; - this.registeredComps = state.firebase.registeredComps; + this.registeredComps = state.firebaseFirestore.registeredComps; this.createCompetitionList( this.registeredComps); } |