diff options
author | Tanmay Bhatia <38436012+tbhatia2299@users.noreply.github.com> | 2020-12-29 11:41:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 14:41:12 -0500 |
commit | efaa41884b5aa4b4704380eb3615d3801958a775 (patch) | |
tree | bc260b59617af0dd28add0aa51276f36c2c0343f /src/components/profile/ProfileBody.tsx | |
parent | 4383161119549ce2f8f76b24ce6c7dbe421e7e78 (diff) |
Made another PR and added code to solve the same purpose as in #152 (#153)
Diffstat (limited to 'src/components/profile/ProfileBody.tsx')
-rw-r--r-- | src/components/profile/ProfileBody.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/profile/ProfileBody.tsx b/src/components/profile/ProfileBody.tsx index 49ee74ee..85634daa 100644 --- a/src/components/profile/ProfileBody.tsx +++ b/src/components/profile/ProfileBody.tsx @@ -11,7 +11,6 @@ interface ProfileBodyProps { onLayout: (event: LayoutChangeEvent) => void; isFollowed: boolean; isBlocked: boolean; - isOwnProfile: boolean; handleFollowUnfollow: Function; handleBlockUnblock: Function; userXId: string | undefined; @@ -21,7 +20,6 @@ const ProfileBody: React.FC<ProfileBodyProps> = ({ onLayout, isFollowed, isBlocked, - isOwnProfile, handleFollowUnfollow, handleBlockUnblock, userXId, @@ -50,7 +48,7 @@ const ProfileBody: React.FC<ProfileBodyProps> = ({ ); }}>{`${website}`}</Text> )} - {userXId && !isOwnProfile ? ( + {userXId && ( <View style={styles.toggleButtonContainer}> {!isBlocked && ( <ToggleButton @@ -65,8 +63,6 @@ const ProfileBody: React.FC<ProfileBodyProps> = ({ buttonType={TOGGLE_BUTTON_TYPE.BLOCK_UNBLOCK} /> </View> - ) : ( - <></> )} </View> ); |