diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-03-09 10:33:07 -0800 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-03-09 10:33:07 -0800 |
commit | 743f0b19f95c4398a5026d7cf80d38617eecfcc7 (patch) | |
tree | a01e49cc636622563b56c7a378e7ac8573ee0378 /src | |
parent | c96497fb94fd67a4ba762da74b93eeb37ed2904c (diff) |
Cleaned spbody
Diffstat (limited to 'src')
-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; |