Browse Source

Updated search to incldue interpreter fee and added visual styling

eduardo.santin 2 years ago
parent
commit
82123c64ee
1 changed files with 10 additions and 6 deletions
  1. 10
    6
      screens/main/Search.js

+ 10
- 6
screens/main/Search.js View File

110
         console.log('Presencial')
110
         console.log('Presencial')
111
         query = query.where('Modalidad.Presencial', '==', true)
111
         query = query.where('Modalidad.Presencial', '==', true)
112
       }
112
       }
113
-      if (tags[i] == 'OL') {
113
+      if (tags[i].id == 'ON') {
114
         query = query.where('Modalidad.Online', '==', true)
114
         query = query.where('Modalidad.Online', '==', true)
115
       }
115
       }
116
-      if (tags[i] == 'IL') {
116
+      if (tags[i].id == 'IL') {
117
         query = query.where('Cantidad.Individual', '==', true)
117
         query = query.where('Cantidad.Individual', '==', true)
118
       }
118
       }
119
-      if (tags[i] == 'GL') {
119
+      if (tags[i].id == 'GL') {
120
         query = query.where('Cantidad.Grupal', '==', true)
120
         query = query.where('Cantidad.Grupal', '==', true)
121
       }
121
       }
122
-      if (tags[i] == 'ESP') {
122
+      if (tags[i].id == 'ESP') {
123
         query = query.where('Lenguaje.Esp', '==', true)
123
         query = query.where('Lenguaje.Esp', '==', true)
124
       }
124
       }
125
-      if (tags[i] == 'ING') {
125
+      if (tags[i].id == 'ING') {
126
         query = query.where('Lenguaje.Ing', '==', true)
126
         query = query.where('Lenguaje.Ing', '==', true)
127
       }
127
       }
128
   }
128
   }
238
         
238
         
239
         renderItem={({ item, }) => {
239
         renderItem={({ item, }) => {
240
           return (
240
           return (
241
-            <View style={{ flexDirection: "row", justifyContent: "space-between" }}>
241
+          <View>
242
+            <View style={{ flexDirection: "row", paddingBottom: 20, paddingTop: 20,  justifyContent: "space-between" }}>
242
               <Text>{item.data.name}</Text>
243
               <Text>{item.data.name}</Text>
244
+              <Text>{item.data.Precio}</Text>
243
               <button  styles = {styles.button}     onClick={() => { dothing(item.id) }}>Button</button>
245
               <button  styles = {styles.button}     onClick={() => { dothing(item.id) }}>Button</button>
244
             </View>
246
             </View>
247
+            <View style={{ borderBottomColor: 'black', borderBottomWidth: 1 }} />
248
+          </View>
245
           )
249
           )
246
         }}
250
         }}
247
         />
251
         />