Browse Source

Arreglo de bug en Confirm (finalmente)

ErnestoOrtiz2 2 years ago
parent
commit
73b6bf59ee
2 changed files with 3 additions and 11 deletions
  1. 2
    10
      screens/main/Confirm.js
  2. 1
    1
      screens/main/Home_page.js

+ 2
- 10
screens/main/Confirm.js View File

@@ -45,9 +45,9 @@ export function Confirm({route, navigation}) {
45 45
       navigation.navigate('Search');
46 46
     });
47 47
 
48
-    console.log("en confirm", route.params.tag.citaID);
48
+    //console.log("en confirm", route.params.tag.citaID);
49 49
     //const cita = firebase.firestore().collection('APPOINTMENTS').where("new", "==", "true").onSnapshot(snapShot => {
50
-    const cita = firebase.firestore().collection('APPOINTMENTS').where("citaID", "==", route.params.tag.citaID).onSnapshot(snapShot => {
50
+    const cita = firebase.firestore().collection('APPOINTMENTS').where("citaID", "==", route.params.x).onSnapshot(snapShot => {
51 51
       const appointments = snapShot.docs.map(docSnap => {
52 52
         return{
53 53
           _id:docSnap.id,
@@ -127,14 +127,6 @@ export function Confirm({route, navigation}) {
127 127
             console.log("date");
128 128
           }}
129 129
           >
130
-            <List.Item
131
-            title='Usuario:'
132
-            description={item.User}
133
-            titleNumberOfLines={1}
134
-            titleStyle={styles.listTitle}
135
-            descriptionStyle={styles.listDescription}
136
-            descriptionNumberOfLines={1}
137
-          />
138 130
           <List.Item
139 131
             title='Usuario:'
140 132
             description={item.User}

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

@@ -53,7 +53,7 @@ export function Home_page({navigation}) {
53 53
     responseListener.current = Notifications.addNotificationResponseReceivedListener(response => {
54 54
       if (response.notification.request.content.body == 'Le solicitan una cita'){
55 55
         console.log("response appointments ", appointments[0])
56
-        navigation.navigate('Confirm',{tag: appointments[0]})
56
+        navigation.navigate('Confirm',{x})
57 57
       } 
58 58
     });
59 59