浏览代码

fix: un masters remove photo and filter button

Oleksandr Honcharov 1 年之前
父节点
当前提交
ce00e7089c
共有 1 个文件被更改,包括 8 次插入22 次删除
  1. 8 22
      src/screens/InAppScreens/TravellersScreen/UNMasters/index.tsx

+ 8 - 22
src/screens/InAppScreens/TravellersScreen/UNMasters/index.tsx

@@ -65,12 +65,6 @@ const UNMastersList = React.memo(({ type }: { type: string }) => {
   const renderItem = ({ item }: { item: Master }) => {
     return (
       <View style={UNMastersListStyles.wrapper}>
-        <View>
-          <Image
-            style={UNMastersListStyles.avatar}
-            source={{ uri: API_HOST + '/img/avatars/' + `-1.webp` }}
-          />
-        </View>
         <View style={{ gap: 3, marginLeft: 5 }}>
           <Text style={UNMastersListStyles.firstAndLastName}>{item.full_name}</Text>
           <View style={UNMastersListStyles.wrapper}>
@@ -103,22 +97,14 @@ const UNMastersList = React.memo(({ type }: { type: string }) => {
   };
 
   return (
-    <>
-      <TouchableOpacity style={UNMastersListStyles.sortButton}>
-        <ArrowUpWideIcon />
-        <Text style={[UNMastersListStyles.descriptionText, { marginLeft: 5 }]}>
-          Sorted by country of origin / year of completion
-        </Text>
-      </TouchableOpacity>
-      <FlatList
-        contentContainerStyle={{ gap: 10 }}
-        horizontal={false}
-        data={masters}
-        renderItem={renderItem}
-        keyExtractor={(item) => item.id.toString()}
-        showsVerticalScrollIndicator={false}
-      />
-    </>
+    <FlatList
+      contentContainerStyle={{ gap: 10 }}
+      horizontal={false}
+      data={masters}
+      renderItem={renderItem}
+      keyExtractor={(item) => item.id.toString()}
+      showsVerticalScrollIndicator={false}
+    />
   );
 });