Don't show profile labels until loaded (#4357)

zio/stable
dan 2024-06-04 19:54:30 +01:00 committed by GitHub
parent 551af88f22
commit b5ac450442
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 9 deletions

View File

@ -81,15 +81,17 @@ let ProfileHeaderShell = ({
{children} {children}
<View {!isPlaceholderProfile && (
style={[a.px_lg, a.pb_sm]} <View
pointerEvents={isIOS ? 'auto' : 'box-none'}> style={[a.px_lg, a.pb_sm]}
{isMe ? ( pointerEvents={isIOS ? 'auto' : 'box-none'}>
<LabelsOnMe details={{did: profile.did}} labels={profile.labels} /> {isMe ? (
) : ( <LabelsOnMe details={{did: profile.did}} labels={profile.labels} />
<ProfileHeaderAlerts moderation={moderation} /> ) : (
)} <ProfileHeaderAlerts moderation={moderation} />
</View> )}
</View>
)}
{!isDesktop && !hideBackButton && ( {!isDesktop && !hideBackButton && (
<TouchableWithoutFeedback <TouchableWithoutFeedback