Browse Source

Cambios para que se envien los usernames con la cita

gilberto.cancel 2 years ago
parent
commit
9a72122861
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      screens/main/StateTime.js

+ 6
- 0
screens/main/StateTime.js View File

@@ -18,6 +18,8 @@ export default class Time extends Component{
18 18
       mapflag: this.props.route.params.mapflag,
19 19
       i_token: this.props.route.params.I_Token,
20 20
       u_token: this.props.route.params.U_Token,
21
+      username: this.props.route.params.Username,
22
+      I_username: this.props.route.params.I_Username,
21 23
       pin: this.props.route.params.Pin
22 24
     }
23 25
     console.log(" Time params: ",this.props.route.params)
@@ -125,6 +127,8 @@ export default class Time extends Component{
125 127
     console.log(this.state.u_token)
126 128
     const user = firebase.auth().currentUser;
127 129
     const uid = user.uid
130
+    const username = this.state.username;
131
+    const I_username = this.state.I_username;
128 132
     const u_token = this.state.u_token;
129 133
     const i_token = this.state.i_token;
130 134
     const date = this.state.Appointment
@@ -139,6 +143,8 @@ export default class Time extends Component{
139 143
     firebase.firestore()
140 144
     .collection('APPOINTMENTS')
141 145
     .add({ 
146
+      User: username,
147
+      Interpreter: I_username,
142 148
       participantes: [
143 149
       i_id,
144 150
       uid,