Browse Source

Quite el boton de prueba en home_page

ErnestoOrtiz2 2 years ago
parent
commit
a98cca2adf
2 changed files with 1 additions and 38 deletions
  1. 1
    28
      screens/main/Home_page.js
  2. 0
    10
      screens/main/StateTime.js

+ 1
- 28
screens/main/Home_page.js View File

240
               onPress={ async () => {
240
               onPress={ async () => {
241
                 await sendPushNotification(item.i_token);
241
                 await sendPushNotification(item.i_token);
242
                 citaId(item._id);
242
                 citaId(item._id);
243
+                x = item._id;
243
                 }
244
                 }
244
               }
245
               }
245
             /> 
246
             /> 
311
           </TouchableOpacity>
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
           <Button
315
           <Button
343
           title ='Availability'
316
           title ='Availability'
344
           onPress= {() => navigation.navigate('Availability')}
317
           onPress= {() => navigation.navigate('Availability')}

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

214
         </ImageBackground>
214
         </ImageBackground>
215
       </TouchableWithoutFeedback>
215
       </TouchableWithoutFeedback>
216
     );
216
     );
217
-<<<<<<< HEAD
218
-    }
219
-  }
220
-=======
221
   }
217
   }
222
 }
218
 }
223
-
224
-
225
-
226
-
227
-
228
->>>>>>> 41f4e392c1d11b10c3650da5122494623f10e2d6