diff options
Diffstat (limited to 'src/components/profile/ProfilePreview.tsx')
-rw-r--r-- | src/components/profile/ProfilePreview.tsx | 26 |
1 files changed, 13 insertions, 13 deletions
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', |