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}
<View
style={[a.px_lg, a.pb_sm]}
pointerEvents={isIOS ? 'auto' : 'box-none'}>
{isMe ? (
<LabelsOnMe details={{did: profile.did}} labels={profile.labels} />
) : (
<ProfileHeaderAlerts moderation={moderation} />
)}
</View>
{!isPlaceholderProfile && (
<View
style={[a.px_lg, a.pb_sm]}
pointerEvents={isIOS ? 'auto' : 'box-none'}>
{isMe ? (
<LabelsOnMe details={{did: profile.did}} labels={profile.labels} />
) : (
<ProfileHeaderAlerts moderation={moderation} />
)}
</View>
)}
{!isDesktop && !hideBackButton && (
<TouchableWithoutFeedback