浏览代码

Updated search to incldue interpreter fee and added visual styling

eduardo.santin 3 年前
父节点
当前提交
82123c64ee
共有 1 个文件被更改,包括 10 次插入6 次删除
  1. 10
    6
      screens/main/Search.js

+ 10
- 6
screens/main/Search.js 查看文件

@@ -110,19 +110,19 @@ function Search({ navigation }) {
110 110
         console.log('Presencial')
111 111
         query = query.where('Modalidad.Presencial', '==', true)
112 112
       }
113
-      if (tags[i] == 'OL') {
113
+      if (tags[i].id == 'ON') {
114 114
         query = query.where('Modalidad.Online', '==', true)
115 115
       }
116
-      if (tags[i] == 'IL') {
116
+      if (tags[i].id == 'IL') {
117 117
         query = query.where('Cantidad.Individual', '==', true)
118 118
       }
119
-      if (tags[i] == 'GL') {
119
+      if (tags[i].id == 'GL') {
120 120
         query = query.where('Cantidad.Grupal', '==', true)
121 121
       }
122
-      if (tags[i] == 'ESP') {
122
+      if (tags[i].id == 'ESP') {
123 123
         query = query.where('Lenguaje.Esp', '==', true)
124 124
       }
125
-      if (tags[i] == 'ING') {
125
+      if (tags[i].id == 'ING') {
126 126
         query = query.where('Lenguaje.Ing', '==', true)
127 127
       }
128 128
   }
@@ -238,10 +238,14 @@ function Search({ navigation }) {
238 238
         
239 239
         renderItem={({ item, }) => {
240 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 243
               <Text>{item.data.name}</Text>
244
+              <Text>{item.data.Precio}</Text>
243 245
               <button  styles = {styles.button}     onClick={() => { dothing(item.id) }}>Button</button>
244 246
             </View>
247
+            <View style={{ borderBottomColor: 'black', borderBottomWidth: 1 }} />
248
+          </View>
245 249
           )
246 250
         }}
247 251
         />