From 38661e00281363b0f4ad32f0b29d739e1ca09164 Mon Sep 17 00:00:00 2001
From: Ashm Walia <40498934+ashmgarv@users.noreply.github.com>
Date: Wed, 30 Dec 2020 11:36:44 -0800
Subject: [TMA - 457]Change followers to friends (#149)

* One commit to replace followers with friends

* Move block unblock to drawer and some cosmetic changes

* Options to edit own profile when viewing

* Changes for University Class

* Small fix

* Made ProfileOnboarding a scroll view and other small changes

* Small fix

* Small fix thanks to ivan and tanmay

* Add ?
---
 src/components/profile/ProfilePreview.tsx | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

(limited to 'src/components/profile/ProfilePreview.tsx')

diff --git a/src/components/profile/ProfilePreview.tsx b/src/components/profile/ProfilePreview.tsx
index 49c79e2d..bd015811 100644
--- a/src/components/profile/ProfilePreview.tsx
+++ b/src/components/profile/ProfilePreview.tsx
@@ -28,7 +28,7 @@ const NO_USER: UserType = {
 };
 
 /**
- * This component returns user's profile picture followed by username as a touchable component.
+ * This component returns user's profile picture friended by username as a touchable component.
  * What happens when someone clicks on this component is partly decided by the prop isComment.
  * If isComment is true then it means that we are not displaying this tile as a part of search results.
  * And hence we do not cache the search results.
@@ -189,13 +189,13 @@ const ProfilePreview: React.FC<ProfilePreviewProps> = ({
       usernameStyle = styles.commentUsername;
       nameStyle = styles.commentName;
       break;
-    case 'Follow':
-      containerStyle = styles.followContainer;
-      avatarStyle = styles.followAvatar;
-      nameContainerStyle = styles.followNameContainer;
+    case 'Friend':
+      containerStyle = styles.friendContainer;
+      avatarStyle = styles.friendAvatar;
+      nameContainerStyle = styles.friendNameContainer;
       usernameToDisplay = '@' + username;
-      usernameStyle = styles.followUsername;
-      nameStyle = styles.followName;
+      usernameStyle = styles.friendUsername;
+      nameStyle = styles.friendName;
       break;
     default:
       containerStyle = styles.searchResultContainer;
@@ -233,7 +233,7 @@ const ProfilePreview: React.FC<ProfilePreviewProps> = ({
             <Text style={usernameStyle}>{usernameToDisplay}</Text>
           </>
         )}
-        {previewType === 'Follow' && (
+        {previewType === 'Friend' && (
           <>
             <Text style={usernameStyle}>{usernameToDisplay}</Text>
             <Text style={nameStyle}>{first_name.concat(' ', last_name)}</Text>
@@ -319,28 +319,28 @@ const styles = StyleSheet.create({
     color: 'white',
     textAlign: 'center',
   },
-  followContainer: {
+  friendContainer: {
     flexDirection: 'row',
     alignItems: 'center',
     marginVertical: 10,
   },
-  followAvatar: {
+  friendAvatar: {
     height: 42,
     width: 42,
     marginRight: 15,
     borderRadius: 20,
   },
-  followNameContainer: {
+  friendNameContainer: {
     justifyContent: 'space-evenly',
     alignSelf: 'stretch',
   },
-  followUsername: {
+  friendUsername: {
     fontSize: 14,
     fontWeight: '700',
     color: '#3C3C3C',
     letterSpacing: 0.6,
   },
-  followName: {
+  friendName: {
     fontSize: 12,
     fontWeight: '500',
     color: '#6C6C6C',
-- 
cgit v1.2.3-70-g09d2

