|
@@ -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}
|
|
|
+ />
|
|
|
);
|
|
|
});
|
|
|
|