Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix: Don't flash default profile avatar and link in nav (#1287)

authored by

Patroll and committed by
GitHub
2c60a032 5ee754e6

+6 -1
+6 -1
src/view/shell/desktop/LeftNav.tsx
··· 14 14 import {Text} from 'view/com/util/text/Text' 15 15 import {UserAvatar} from 'view/com/util/UserAvatar' 16 16 import {Link} from 'view/com/util/Link' 17 + import {LoadingPlaceholder} from 'view/com/util/LoadingPlaceholder' 17 18 import {usePalette} from 'lib/hooks/usePalette' 18 19 import {useStores} from 'state/index' 19 20 import {s, colors} from 'lib/styles' ··· 40 41 41 42 const ProfileCard = observer(() => { 42 43 const store = useStores() 43 - return ( 44 + return store.me.handle ? ( 44 45 <Link href={makeProfileLink(store.me)} style={styles.profileCard} asAnchor> 45 46 <UserAvatar avatar={store.me.avatar} size={64} /> 46 47 </Link> 48 + ) : ( 49 + <View style={styles.profileCard}> 50 + <LoadingPlaceholder width={64} height={64} style={{borderRadius: 64}} /> 51 + </View> 47 52 ) 48 53 }) 49 54