From 0faad7fc879de9de6200526afe8a4419022eaaa3 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Mon, 30 Jul 2018 21:19:35 -0400 Subject: Added a quick change to diplay email instead of uid. Also, changed a few small things on mao-tutoring.js --- src/actions/firebase.js | 6 +++--- src/components/mao-fourms.js | 2 +- src/components/mao-tutoring.js | 7 ++++--- 3 files changed, 8 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/actions/firebase.js b/src/actions/firebase.js index 65278fb..a9da36a 100644 --- a/src/actions/firebase.js +++ b/src/actions/firebase.js @@ -179,11 +179,11 @@ export const SNAPSHOT_FOURM = 'SNAPSHOT_FOURM'; export const UPDATE_FOURM_POSTS = 'UPDATE_FOURM_POSTS'; export const createFourmPost = (_subject, _content) => (dispatch, getState) => { - var docRef = firestore.collection('posts'); - const _uid = getState().firebase.uid; + var docRef = firestore.collection('posts'); + const userEmail = getState().firebase.userEmail; docRef.add({ - uid: _uid, + email: userEmail, subject: _subject, content: _content }); diff --git a/src/components/mao-fourms.js b/src/components/mao-fourms.js index cb7095b..78f0192 100644 --- a/src/components/mao-fourms.js +++ b/src/components/mao-fourms.js @@ -177,7 +177,7 @@ class MaoFourms extends connect(store)(PageViewElement) { var fourmSubject = document.createElement('h3'); var fourmContent = document.createElement('p'); - fourmAuthor.innerHTML = this.fourmPosts[i].uid; + fourmAuthor.innerHTML = this.fourmPosts[i].email .replace('@communityschoolnaples.org', ''); fourmSubject.innerHTML = this.fourmPosts[i].subject; fourmContent.innerHTML = this.fourmPosts[i].content; diff --git a/src/components/mao-tutoring.js b/src/components/mao-tutoring.js index ed44b8f..3a833c6 100644 --- a/src/components/mao-tutoring.js +++ b/src/components/mao-tutoring.js @@ -245,20 +245,21 @@ class MaoTutoring extends connect(store)(PageViewElement) {

Need Help Finiding A Tutor?

-

Please, meet with your friends to create tutring sessions.

+

Please meet with your friends to create tutring sessions.

+

Also, ypu can try the fourm page if you want.

Otherwise, contact our tutoring coordinator Mike Binkowski.