aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/Content.tsx
diff options
context:
space:
mode:
authorTanmay Bhatia <38436012+tbhatia2299@users.noreply.github.com>2020-12-29 11:41:12 -0800
committerGitHub <noreply@github.com>2020-12-29 14:41:12 -0500
commitefaa41884b5aa4b4704380eb3615d3801958a775 (patch)
treebc260b59617af0dd28add0aa51276f36c2c0343f /src/components/profile/Content.tsx
parent4383161119549ce2f8f76b24ce6c7dbe421e7e78 (diff)
Made another PR and added code to solve the same purpose as in #152 (#153)
Diffstat (limited to 'src/components/profile/Content.tsx')
-rw-r--r--src/components/profile/Content.tsx6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/components/profile/Content.tsx b/src/components/profile/Content.tsx
index 71e4f195..17713ea3 100644
--- a/src/components/profile/Content.tsx
+++ b/src/components/profile/Content.tsx
@@ -119,11 +119,6 @@ const Content: React.FC<ContentProps> = ({y, userXId, screenType}) => {
});
}, []);
- /**
- * If own profile is being viewed then do not show the follow button.
- */
- const isOwnProfile = loggedInUser.username === user.username;
-
const onLayout = (e: LayoutChangeEvent) => {
const {height} = e.nativeEvent.layout;
setProfileBodyHeight(height);
@@ -283,7 +278,6 @@ const Content: React.FC<ContentProps> = ({y, userXId, screenType}) => {
onLayout,
userXId,
screenType,
- isOwnProfile,
isFollowed,
handleFollowUnfollow,
isBlocked,