From 287f2992fa6400fbac520bf7b9693bd5dcc6e7db Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 10 Oct 2022 21:13:10 -0500 Subject: [PATCH] Rework profile header controls --- src/view/com/profile/ProfileHeader.tsx | 77 ++++++++++++++------------ src/view/index.ts | 8 +++ 2 files changed, 50 insertions(+), 35 deletions(-) diff --git a/src/view/com/profile/ProfileHeader.tsx b/src/view/com/profile/ProfileHeader.tsx index cb2c61e7c7..594890d123 100644 --- a/src/view/com/profile/ProfileHeader.tsx +++ b/src/view/com/profile/ProfileHeader.tsx @@ -86,16 +86,14 @@ export const ProfileHeader = observer(function ProfileHeader({ {view.displayName} - { - undefined /*TODO + Employee @blueskyweb.xyz - */ - } + {isMe ? ( Edit Profile - ) : view.myState.follow ? ( - - Following - ) : ( - - - - Follow - - + <> + {view.myState.follow ? ( + + + Following + + ) : ( + + + Follow + + )} + + + + + + + )} - { - undefined /*TODO + style={[styles.btn, styles.secondaryBtn]}> - */ - } +