diff options
Diffstat (limited to 'src/screens')
| -rw-r--r-- | src/screens/suggestedPeople/SPBody.tsx | 55 | 
1 files changed, 2 insertions, 53 deletions
| diff --git a/src/screens/suggestedPeople/SPBody.tsx b/src/screens/suggestedPeople/SPBody.tsx index 3c3636db..b7943cbc 100644 --- a/src/screens/suggestedPeople/SPBody.tsx +++ b/src/screens/suggestedPeople/SPBody.tsx @@ -66,7 +66,7 @@ const SPBody: React.FC<SPBodyProps> = ({        : console.log('NO BADGES FOUND');    }, []); -  const displayButton = () => { +  const displayFriendButton = () => {      switch (friendship.status) {        case 'friends':          return <Fragment />; @@ -138,7 +138,7 @@ const SPBody: React.FC<SPBodyProps> = ({                  <Text style={styles.firstName}>{user.first_name}</Text>                  <Text style={styles.username}>@{user.username}</Text>                </TouchableOpacity> -              {user.id !== loggedInUserId && displayButton()} +              {user.id !== loggedInUserId && displayFriendButton()}              </View>            </View>            <TaggsBar @@ -262,14 +262,6 @@ const styles = StyleSheet.create({      shadowOffset: {width: 2, height: 2},      shadowOpacity: 0.5,    }, -  requestedButtonTitle: { -    backgroundColor: 'transparent', -    fontSize: normalize(15), -    lineHeight: normalize(18), -    fontWeight: 'bold', -    textAlign: 'center', -    letterSpacing: normalize(1), -  },    body: {},    button: {      justifyContent: 'center', @@ -282,49 +274,6 @@ const styles = StyleSheet.create({      marginRight: '2%',      marginLeft: '1%',    }, -  transparentBG: { -    backgroundColor: 'transparent', -  }, -  lightBlueBG: { -    backgroundColor: '#fff', -  }, -  label: { -    fontSize: normalize(15), -    fontWeight: '700', -    letterSpacing: 1, -  }, -  blueLabel: { -    color: '#fff', -  }, -  whiteLabel: { -    color: 'white', -  }, -  badgeBackground: { -    position: 'absolute', -    width: '100%', -    height: '100%', -    borderRadius: 50, -    borderColor: 'transparent', -    borderWidth: 1, -    alignSelf: 'center', -    flexDirection: 'row', -    justifyContent: 'center', -    alignItems: 'center', -  }, -  badgesContainer: { -    flexDirection: 'column', -    justifyContent: 'space-between', -    alignItems: 'center', -    width: 38, -    left: '5%', -    paddingBottom: '2%', -  }, -  badgeButton: { -    width: 30, -    height: 30, -    borderRadius: 15, -  }, -  animatedBadgeView: {position: 'absolute'},  });  export default SPBody; | 
