diff options
| author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-05 01:03:40 -0400 |
|---|---|---|
| committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-05 01:03:40 -0400 |
| commit | d9d80e24ee61e279e28c028b5fc118db269e91f2 (patch) | |
| tree | 0b3ecb2d7a166237bf70d68093941a31124513fb /src/actions/firebaseFirestore.js | |
| parent | 30a7181224eac82731f4950dc9f64956aba45c5e (diff) | |
Updated ui to display minutes instead of hours. Also, added a location field to tutoring hours request.
Diffstat (limited to 'src/actions/firebaseFirestore.js')
| -rw-r--r-- | src/actions/firebaseFirestore.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/actions/firebaseFirestore.js b/src/actions/firebaseFirestore.js index 5489b5b..f31532e 100644 --- a/src/actions/firebaseFirestore.js +++ b/src/actions/firebaseFirestore.js @@ -100,13 +100,14 @@ export const setUserData = (_divison) => (dispatch, getState) => { }) } -export const requestHours = (_time, _trainee, _date) => (dispatch, getState) => { +export const requestHours = (_time, _trainee, _location, _date) => (dispatch, getState) => { var docRef = firestore.collection('requests'); const _uid = getState().firebaseAuth.uid; const _email = getState().firebaseAuth.userEmail; docRef.add({ time: _time, trainee: _trainee, + location: _location, day: _date, uid: _uid, email: _email |
