diff options
| author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-07-29 21:19:34 -0400 |
|---|---|---|
| committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-07-29 21:19:34 -0400 |
| commit | b311b6e9c2cb1865e66a4da45b5305ebc8b0ed77 (patch) | |
| tree | ddb818fb5ea22864255249b9d37d54f6b3571220 /src/actions | |
| parent | 43d10a870bb6b9189cfdf431445810df45db4739 (diff) | |
Added dedicated account page for logging in.
Diffstat (limited to 'src/actions')
| -rw-r--r-- | src/actions/app.js | 3 | ||||
| -rw-r--r-- | src/actions/firebase.js | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/actions/app.js b/src/actions/app.js index dedfb49..d58c7ff 100644 --- a/src/actions/app.js +++ b/src/actions/app.js @@ -40,6 +40,9 @@ const loadPage = (page) => (dispatch) => { case 'tutor': import('../components/mao-tutoring.js'); break; + case 'account': + import('../components/mao-account.js'); + break; default: page = 'view404'; import('../components/my-view404.js'); diff --git a/src/actions/firebase.js b/src/actions/firebase.js index 8cc7d39..becc62e 100644 --- a/src/actions/firebase.js +++ b/src/actions/firebase.js @@ -30,6 +30,7 @@ export const signIn = (_email, _password) => (dispatch) => { } export const authFail = (errorCode) => { + alert(errorCode); return { type: AUTH_FAIL, payload: false, @@ -39,7 +40,7 @@ export const authFail = (errorCode) => { } export const authSuccess = (_user) => { - alert('authSuccess'); + alert('Sign In Success'); return { type: AUTH_SUCCESS, payload: true, @@ -70,8 +71,6 @@ export const UPDATE_HOURS = 'UPDATE_HOURS'; export const snapshotHours = () => (dispatch, getState) => { - alert('running'); - const currentState = getState().firebase; if(currentState.initialized) { var totalHours; @@ -96,7 +95,6 @@ export const snapshotHours = () => (dispatch, getState) => { } export const updateHours = (hours, reqHours) => { - console.log(reqHours); return { type: 'UPDATE_HOURS', approvedHours: hours, |
