Browse Source

Cambios para que se envien los usernames con la cita

gilberto.cancel 2 years ago
parent
commit
d3019fd1d9
1 changed files with 9 additions and 3 deletions
  1. 9
    3
      screens/main/Calendar.js

+ 9
- 3
screens/main/Calendar.js View File

@@ -11,7 +11,9 @@ export default class Calendario extends Component {
11 11
       interpreter_id : this.props.route.params.Intereprete_id,
12 12
       mapflag : this.props.route.params.Flag,
13 13
       i_token: this.props.route.params.I_Token,
14
-      u_token: this.props.route.params.U_Token
14
+      u_token: this.props.route.params.U_Token,
15
+      username: this.props.route.params.Username,
16
+      I_username: this.props.route.params.I_Username,
15 17
     };
16 18
     this.onDateChange = this.onDateChange.bind(this);
17 19
     
@@ -25,10 +27,14 @@ export default class Calendario extends Component {
25 27
     console.log(this.props.route.params.Flag)
26 28
     
27 29
     if(this.state.mapflag == false){
28
-      this.props.navigation.navigate('StateTime', {Appointment_Date: date._d, int_id : this.state.interpreter_id, Flag: this.state.mapflag, I_Token: this.state.i_token, U_Token: this.state.u_token});
30
+      this.props.navigation.navigate('StateTime', {Appointment_Date: date._d, int_id : this.state.interpreter_id, 
31
+        Flag: this.state.mapflag, I_Token: this.state.i_token, U_Token: this.state.u_token
32
+        ,Username: this.state.username, I_Username: this.state.I_username});
29 33
     }
30 34
     else{
31
-      this.props.navigation.navigate('Map', {Appointment_Date: date._d, int_id : this.state.interpreter_id, Flag: this.state.mapflag, I_Token: this.state.i_token, U_Token: this.state.u_token});
35
+      this.props.navigation.navigate('Map', {Appointment_Date: date._d, int_id : this.state.interpreter_id, 
36
+        Flag: this.state.mapflag, I_Token: this.state.i_token, U_Token: this.state.u_token
37
+        ,Username: this.state.username, I_Username: this.state.I_username});
32 38
     }
33 39
   }
34 40