|
@@ -240,6 +240,7 @@ export function Home_page({navigation}) {
|
240
|
240
|
onPress={ async () => {
|
241
|
241
|
await sendPushNotification(item.i_token);
|
242
|
242
|
citaId(item._id);
|
|
243
|
+ x = item._id;
|
243
|
244
|
}
|
244
|
245
|
}
|
245
|
246
|
/>
|
|
@@ -311,34 +312,6 @@ export function Home_page({navigation}) {
|
311
|
312
|
</TouchableOpacity>
|
312
|
313
|
)}
|
313
|
314
|
/>
|
314
|
|
-
|
315
|
|
-
|
316
|
|
- <FlatList style={{
|
317
|
|
- flex: 1,
|
318
|
|
- width: screenWidth,
|
319
|
|
- }}
|
320
|
|
- data={appointments}
|
321
|
|
- keyExtractor = {item => item._id}
|
322
|
|
- ItemSeparatorComponent={() => <Divider />}
|
323
|
|
- renderItem={({ item }) => {
|
324
|
|
- if(item.new == 'true'){
|
325
|
|
- return (
|
326
|
|
- <Button
|
327
|
|
- title ='Pedir Cita'
|
328
|
|
- onPress={ async () => {
|
329
|
|
- await sendPushNotification(item.i_token);
|
330
|
|
- citaId(item._id);
|
331
|
|
- x = item._id;
|
332
|
|
- console.log(x);
|
333
|
|
- console.log("en pedir cita, appointments", appointments[0])
|
334
|
|
- }
|
335
|
|
- }
|
336
|
|
- />
|
337
|
|
- )
|
338
|
|
- }}}
|
339
|
|
- />
|
340
|
|
-
|
341
|
|
-
|
342
|
315
|
<Button
|
343
|
316
|
title ='Availability'
|
344
|
317
|
onPress= {() => navigation.navigate('Availability')}
|