aboutsummaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-25 12:28:41 -0400
committerIvan Chen <ivan@tagg.id>2021-05-25 12:28:41 -0400
commit913e321498b87163a19fa12e95d79fcd4d1b0b29 (patch)
tree0bc3fb942cc2f62fc5f85e7b7a7693675861b570 /src/screens
parent7f991eef32475165f819dc8b666c5763f0021696 (diff)
Clean up code
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/suggestedPeople/SPBody.tsx25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/screens/suggestedPeople/SPBody.tsx b/src/screens/suggestedPeople/SPBody.tsx
index c22f8143..352e4433 100644
--- a/src/screens/suggestedPeople/SPBody.tsx
+++ b/src/screens/suggestedPeople/SPBody.tsx
@@ -1,6 +1,12 @@
import {useNavigation} from '@react-navigation/native';
import React, {Fragment, useEffect, useMemo, useState} from 'react';
-import {StyleSheet, Text, View} from 'react-native';
+import {
+ ImageSourcePropType,
+ ScrollView,
+ StyleSheet,
+ Text,
+ View,
+} from 'react-native';
import {Image} from 'react-native-animatable';
import {TouchableOpacity} from 'react-native-gesture-handler';
import RequestedButton from '../../assets/ionicons/requested-button.svg';
@@ -43,7 +49,7 @@ const SPBody: React.FC<SPBodyProps> = ({
const [localBadges, setLocalBadges] = useState<
{
badge: UniversityBadge;
- img: string;
+ img: ImageSourcePropType;
}[]
>([]);
const navigation = useNavigation();
@@ -138,9 +144,7 @@ const SPBody: React.FC<SPBodyProps> = ({
<View style={styles.mainContainer}>
<View style={styles.topContainer}>
<Text style={styles.title}>{firstItem && 'Suggested People'}</Text>
- {localBadges && (
- <BadgesDropdown {...{university, localBadges, badges}} />
- )}
+ {localBadges && <BadgesDropdown {...{university, localBadges}} />}
</View>
<View style={styles.body}>
<View style={styles.marginManager}>
@@ -267,17 +271,6 @@ const styles = StyleSheet.create({
shadowOffset: {width: 2, height: 2},
shadowOpacity: 0.5,
},
- body: {},
- button: {
- justifyContent: 'center',
- alignItems: 'center',
- width: SCREEN_WIDTH * 0.4,
- aspectRatio: 154 / 33,
- borderWidth: 2,
- borderColor: '#fff',
- borderRadius: 3,
- marginRight: '2%',
- marginLeft: '1%',
},
});