diff options
author | dan <dan.abramov@gmail.com> | 2024-06-04 19:54:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-04 19:54:30 +0100 |
commit | b5ac45044295988f11751c191eb91e36fb141478 (patch) | |
tree | 2ccb467082568163b7ea418f6f00aacf5fdbb559 /src | |
parent | 551af88f224e2c1beb4e8229024b0b4a4fbc3e0b (diff) | |
download | voidsky-b5ac45044295988f11751c191eb91e36fb141478.tar.zst |
Don't show profile labels until loaded (#4357)
Diffstat (limited to 'src')
-rw-r--r-- | src/screens/Profile/Header/Shell.tsx | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/screens/Profile/Header/Shell.tsx b/src/screens/Profile/Header/Shell.tsx index 477248d0b..553b38a3b 100644 --- a/src/screens/Profile/Header/Shell.tsx +++ b/src/screens/Profile/Header/Shell.tsx @@ -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 |