diff options
Diffstat (limited to 'src/components/profile/Friends.tsx')
-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', |