diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-03-18 17:43:27 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-03-18 17:43:27 -0700 |
commit | f4ca572ceb9448e02a6261ca50e3ee6b0acfe2b6 (patch) | |
tree | f65cc82bd4a5f3d38be82749a80cbda0aef05898 /src/components | |
parent | aa0ddb7c5a6612ff067f7dce1c6d5b083db44309 (diff) |
fixed
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/profile/Friends.tsx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/components/profile/Friends.tsx b/src/components/profile/Friends.tsx index 0592def8..d87b0fb0 100644 --- a/src/components/profile/Friends.tsx +++ b/src/components/profile/Friends.tsx @@ -63,7 +63,7 @@ const Friends: React.FC<FriendsProps> = ({result, screenType, userId}) => { /> </View> <TouchableOpacity - style={styles.button} + style={styles.addFriendButton} onPress={() => { console.log('screentype: ', screenType); handleAddFriend(screenType, profilePreview, dispatch, state).then( @@ -79,7 +79,7 @@ const Friends: React.FC<FriendsProps> = ({result, screenType, userId}) => { }, ); }}> - <Text style={styles.buttonTitle}>Add Friend</Text> + <Text style={styles.addFriendButtonTitle}>Add Friend</Text> </TouchableOpacity> </View> ))} @@ -143,11 +143,11 @@ const Friends: React.FC<FriendsProps> = ({result, screenType, userId}) => { </View> {loggedInUser.userId !== userId && ( <TouchableOpacity - style={styles.button} + style={styles.unfriendButton} onPress={() => handleUnfriend(screenType, profilePreview, dispatch, state) }> - <Text style={styles.buttonTitle}>Unfriend</Text> + <Text style={styles.unfriendButtonTitle}>Unfriend</Text> </TouchableOpacity> )} </View> @@ -236,7 +236,7 @@ const styles = StyleSheet.create({ letterSpacing: normalize(0.6), paddingHorizontal: '3.8%', }, - button: { + unfriendButton: { alignSelf: 'center', justifyContent: 'center', alignItems: 'center', @@ -246,10 +246,9 @@ const styles = StyleSheet.create({ borderWidth: 2, borderRadius: 2, padding: 0, - backgroundColor: TAGG_LIGHT_BLUE, }, - buttonTitle: { - color: 'white', + unfriendButtonTitle: { + color: TAGG_LIGHT_BLUE, padding: 0, fontSize: normalize(11), fontWeight: '700', |