|
@@ -81,8 +81,10 @@ const Days = [
|
81
|
81
|
|
82
|
82
|
|
83
|
83
|
|
84
|
|
-function Search({ navigation }) {
|
|
84
|
+function Search({route, navigation }) {
|
85
|
85
|
|
|
86
|
+ const u_token = route.params.U_Token;
|
|
87
|
+ console.log("U__token: ", u_token)
|
86
|
88
|
|
87
|
89
|
const [users, setUsers] = useState([])
|
88
|
90
|
const [selectedTags, setSelectedTags] = useState([])
|
|
@@ -113,7 +115,7 @@ function Search({ navigation }) {
|
113
|
115
|
//check which tags where called in the search
|
114
|
116
|
if (tags[i].id === 'PL') {
|
115
|
117
|
console.log('Presencial')
|
116
|
|
- query = query.where('Modalidad.Presencial', '==', true)
|
|
118
|
+ query = query.where('face_to_face', '==', true)
|
117
|
119
|
mapflag = true
|
118
|
120
|
}
|
119
|
121
|
if (tags[i].id == 'ON') {
|
|
@@ -250,7 +252,7 @@ function Search({ navigation }) {
|
250
|
252
|
<View style={{ flexDirection: "row", paddingBottom: 20, paddingTop: 20, justifyContent: "space-between" }}>
|
251
|
253
|
<Text>{item.data.name}</Text>
|
252
|
254
|
<Text>{item.data.Precio}</Text>
|
253
|
|
- <Button title='Buscar' onPress={() => { dothing(item.id) }}/>
|
|
255
|
+ <Button title='Buscar' onPress={() => { dothing(item.id, item.data.push_token, u_token) }}/>
|
254
|
256
|
</View>
|
255
|
257
|
<View style={{ borderBottomColor: 'black', borderBottomWidth: 1 }} />
|
256
|
258
|
</View>
|
|
@@ -266,9 +268,9 @@ function Search({ navigation }) {
|
266
|
268
|
return (item) => setSelectedTags(xorBy(selectedTags, [item], 'id'))
|
267
|
269
|
}
|
268
|
270
|
|
269
|
|
- function dothing(item) {
|
270
|
|
- console.log('This is the item id: ', item)
|
271
|
|
- navigation.navigate('Calendar', {Intereprete_id: item, Flag: mapflag})
|
|
271
|
+ function dothing(item, i_token, u_token) {
|
|
272
|
+ console.log('This is the item id: ', item, "With i_token: ", i_token, " u_token : ", u_token)
|
|
273
|
+ navigation.navigate('Calendar', {Intereprete_id: item, Flag: mapflag, I_Token: i_token, U_Token: u_token})
|
272
|
274
|
}
|
273
|
275
|
|
274
|
276
|
}
|