Add type: labeler to easy spots
This commit is contained in:
@@ -45,7 +45,11 @@ function AccountItem({
|
|||||||
accessibilityHint={_(msg`Double tap to sign in`)}>
|
accessibilityHint={_(msg`Double tap to sign in`)}>
|
||||||
<View style={[pal.borderDark, styles.groupContent, styles.noTopBorder]}>
|
<View style={[pal.borderDark, styles.groupContent, styles.noTopBorder]}>
|
||||||
<View style={s.p10}>
|
<View style={s.p10}>
|
||||||
<UserAvatar avatar={profile?.avatar} size={30} />
|
<UserAvatar
|
||||||
|
avatar={profile?.avatar}
|
||||||
|
size={30}
|
||||||
|
type={profile?.associated?.labeler ? 'labeler' : 'user'}
|
||||||
|
/>
|
||||||
</View>
|
</View>
|
||||||
<Text style={styles.accountText}>
|
<Text style={styles.accountText}>
|
||||||
<Text type="lg-bold" style={pal.text}>
|
<Text type="lg-bold" style={pal.text}>
|
||||||
|
|||||||
@@ -415,7 +415,11 @@ export const ComposePost = observer(function ComposePost({
|
|||||||
styles.textInputLayout,
|
styles.textInputLayout,
|
||||||
isNative && styles.textInputLayoutMobile,
|
isNative && styles.textInputLayoutMobile,
|
||||||
]}>
|
]}>
|
||||||
<UserAvatar avatar={currentProfile?.avatar} size={50} />
|
<UserAvatar
|
||||||
|
avatar={currentProfile?.avatar}
|
||||||
|
size={50}
|
||||||
|
type={currentProfile?.associated?.labeler ? 'labeler' : 'user'}
|
||||||
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
ref={textInput}
|
ref={textInput}
|
||||||
richtext={richtext}
|
richtext={richtext}
|
||||||
|
|||||||
@@ -23,7 +23,11 @@ export function ComposePrompt({onPressCompose}: {onPressCompose: () => void}) {
|
|||||||
accessibilityRole="button"
|
accessibilityRole="button"
|
||||||
accessibilityLabel={_(msg`Compose reply`)}
|
accessibilityLabel={_(msg`Compose reply`)}
|
||||||
accessibilityHint={_(msg`Opens composer`)}>
|
accessibilityHint={_(msg`Opens composer`)}>
|
||||||
<UserAvatar avatar={profile?.avatar} size={38} />
|
<UserAvatar
|
||||||
|
avatar={profile?.avatar}
|
||||||
|
size={38}
|
||||||
|
type={profile?.associated?.labeler ? 'labeler' : 'user'}
|
||||||
|
/>
|
||||||
<Text
|
<Text
|
||||||
type="xl"
|
type="xl"
|
||||||
style={[
|
style={[
|
||||||
|
|||||||
@@ -45,7 +45,11 @@ function SwitchAccountCard({account}: {account: SessionAccount}) {
|
|||||||
const contents = (
|
const contents = (
|
||||||
<View style={[pal.view, styles.linkCard]}>
|
<View style={[pal.view, styles.linkCard]}>
|
||||||
<View style={styles.avi}>
|
<View style={styles.avi}>
|
||||||
<UserAvatar size={40} avatar={profile?.avatar} />
|
<UserAvatar
|
||||||
|
size={40}
|
||||||
|
avatar={profile?.avatar}
|
||||||
|
type={profile?.associated?.labeler ? 'labeler' : 'user'}
|
||||||
|
/>
|
||||||
</View>
|
</View>
|
||||||
<View style={[s.flex1]}>
|
<View style={[s.flex1]}>
|
||||||
<Text type="md-bold" style={pal.text} numberOfLines={1}>
|
<Text type="md-bold" style={pal.text} numberOfLines={1}>
|
||||||
|
|||||||
@@ -82,7 +82,11 @@ function SettingsAccountCard({account}: {account: SessionAccount}) {
|
|||||||
const contents = (
|
const contents = (
|
||||||
<View style={[pal.view, styles.linkCard]}>
|
<View style={[pal.view, styles.linkCard]}>
|
||||||
<View style={styles.avi}>
|
<View style={styles.avi}>
|
||||||
<UserAvatar size={40} avatar={profile?.avatar} />
|
<UserAvatar
|
||||||
|
size={40}
|
||||||
|
avatar={profile?.avatar}
|
||||||
|
type={profile?.associated?.labeler ? 'labeler' : 'user'}
|
||||||
|
/>
|
||||||
</View>
|
</View>
|
||||||
<View style={[s.flex1]}>
|
<View style={[s.flex1]}>
|
||||||
<Text type="md-bold" style={pal.text}>
|
<Text type="md-bold" style={pal.text}>
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ let DrawerProfileCard = ({
|
|||||||
avatar={profile?.avatar}
|
avatar={profile?.avatar}
|
||||||
// See https://github.com/bluesky-social/social-app/pull/1801:
|
// See https://github.com/bluesky-social/social-app/pull/1801:
|
||||||
usePlainRNImage={true}
|
usePlainRNImage={true}
|
||||||
|
type={profile?.associated?.labeler ? 'labeler' : 'user'}
|
||||||
/>
|
/>
|
||||||
<Text
|
<Text
|
||||||
type="title-lg"
|
type="title-lg"
|
||||||
|
|||||||
@@ -229,6 +229,7 @@ export function BottomBar({navigation}: BottomTabBarProps) {
|
|||||||
size={27}
|
size={27}
|
||||||
// See https://github.com/bluesky-social/social-app/pull/1801:
|
// See https://github.com/bluesky-social/social-app/pull/1801:
|
||||||
usePlainRNImage={true}
|
usePlainRNImage={true}
|
||||||
|
type={profile?.associated?.labeler ? 'labeler' : 'user'}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
) : (
|
) : (
|
||||||
@@ -238,6 +239,7 @@ export function BottomBar({navigation}: BottomTabBarProps) {
|
|||||||
size={28}
|
size={28}
|
||||||
// See https://github.com/bluesky-social/social-app/pull/1801:
|
// See https://github.com/bluesky-social/social-app/pull/1801:
|
||||||
usePlainRNImage={true}
|
usePlainRNImage={true}
|
||||||
|
type={profile?.associated?.labeler ? 'labeler' : 'user'}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -64,7 +64,11 @@ function ProfileCard() {
|
|||||||
style={[styles.profileCard, !isDesktop && styles.profileCardTablet]}
|
style={[styles.profileCard, !isDesktop && styles.profileCardTablet]}
|
||||||
title={_(msg`My Profile`)}
|
title={_(msg`My Profile`)}
|
||||||
asAnchor>
|
asAnchor>
|
||||||
<UserAvatar avatar={profile.avatar} size={size} />
|
<UserAvatar
|
||||||
|
avatar={profile.avatar}
|
||||||
|
size={size}
|
||||||
|
type={profile?.associated?.labeler ? 'labeler' : 'user'}
|
||||||
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
) : (
|
) : (
|
||||||
<View style={[styles.profileCard, !isDesktop && styles.profileCardTablet]}>
|
<View style={[styles.profileCard, !isDesktop && styles.profileCardTablet]}>
|
||||||
|
|||||||
Reference in New Issue
Block a user