Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Improve display name in Settings (#8256)

authored by

Eric Bailey and committed by
GitHub
3f47c8cf aa3ee8db

+13 -5
+13 -5
src/screens/Settings/Settings.tsx
··· 290 290 if (!moderationOpts) return null 291 291 292 292 const moderation = moderateProfile(profile, moderationOpts) 293 + const displayName = sanitizeDisplayName( 294 + profile.displayName || sanitizeHandle(profile.handle), 295 + moderation.ui('displayName'), 296 + ) 293 297 294 298 return ( 295 299 <> ··· 300 304 type={shadow.associated?.labeler ? 'labeler' : 'user'} 301 305 /> 302 306 303 - <View style={[a.flex_row, a.gap_xs, a.align_center]}> 307 + <View 308 + style={[ 309 + a.flex_row, 310 + a.gap_xs, 311 + a.align_center, 312 + a.justify_center, 313 + a.w_full, 314 + ]}> 304 315 <Text 305 316 emoji 306 317 testID="profileHeaderDisplayName" ··· 311 322 gtMobile ? a.text_4xl : a.text_3xl, 312 323 a.font_heavy, 313 324 ]}> 314 - {sanitizeDisplayName( 315 - profile.displayName || sanitizeHandle(profile.handle), 316 - moderation.ui('displayName'), 317 - )} 325 + {displayName} 318 326 </Text> 319 327 {shouldShowVerificationCheckButton(verificationState) && ( 320 328 <View