diff --git a/src/view/com/profile/ProfileHeader.tsx b/src/view/com/profile/ProfileHeader.tsx index 131c82b7..32fe8690 100644 --- a/src/view/com/profile/ProfileHeader.tsx +++ b/src/view/com/profile/ProfileHeader.tsx @@ -14,7 +14,7 @@ import { ProfileImageLightbox, } from '../../../state/models/shell-ui' import {pluralize} from '../../../lib/strings' -import {s, colors} from '../../lib/styles' +import {s} from '../../lib/styles' import {getGradient} from '../../lib/asset-gen' import {DropdownButton, DropdownItem} from '../util/forms/DropdownButton' import * as Toast from '../util/Toast' @@ -24,6 +24,7 @@ import {RichText} from '../util/text/RichText' import {UserAvatar} from '../util/UserAvatar' import {UserBanner} from '../util/UserBanner' import {UserInfoText} from '../util/UserInfoText' +import {usePalette} from '../../lib/hooks/usePalette' export const ProfileHeader = observer(function ProfileHeader({ view, @@ -32,6 +33,7 @@ export const ProfileHeader = observer(function ProfileHeader({ view: ProfileViewModel onRefreshAll: () => void }) { + const pal = usePalette('default') const store = useStores() const isMember = useMemo( () => view.isScene && view.myState.member, @@ -95,9 +97,10 @@ export const ProfileHeader = observer(function ProfileHeader({ // = if (!view || !view.hasLoaded) { return ( - + - + - + {view.displayName || view.handle} @@ -161,24 +164,32 @@ export const ProfileHeader = observer(function ProfileHeader({ } } return ( - + {isMe ? ( - Edit Profile + style={[styles.btn, styles.mainBtn, pal.btn]}> + + Edit Profile + ) : ( <> {view.myState.follow ? ( - - Following + style={[styles.btn, styles.mainBtn, pal.btn]}> + + + Following + ) : ( @@ -188,7 +199,9 @@ export const ProfileHeader = observer(function ProfileHeader({ end={{x: 1, y: 1}} style={[styles.btn, styles.gradientBtn]}> - Follow + + Follow + )} @@ -196,33 +209,38 @@ export const ProfileHeader = observer(function ProfileHeader({ )} {dropdownItems?.length ? ( - + style={[styles.btn, styles.secondaryBtn, pal.btn]}> + ) : undefined} - + {view.displayName || view.handle} {view.isScene ? ( - - Scene + + Scene ) : undefined} - @{view.handle} + @{view.handle} - + {view.followersCount} - + {pluralize(view.followersCount, 'follower')} @@ -230,36 +248,38 @@ export const ProfileHeader = observer(function ProfileHeader({ - + {view.followsCount} - following + + following + ) : undefined} {view.isScene ? ( - + {view.membersCount} - + {pluralize(view.membersCount, 'member')} ) : undefined} - + {view.postsCount} - + {pluralize(view.postsCount, 'post')} {view.description ? ( - - Created by + + + Created by + - You are a member + + You are a member + ) : undefined} {view.isScene && view.creator === store.me.did ? ( - + - Invite Members + + Invite Members + ) : undefined} - +