Add context to replies when appearing in the feed
This commit is contained in:
parent
d60de5e214
commit
246b0e19e1
4 changed files with 140 additions and 40 deletions
|
@ -21,7 +21,7 @@ export function UserAvatar({
|
|||
size: number
|
||||
handle: string
|
||||
displayName: string | undefined
|
||||
userAvatar: string | null
|
||||
userAvatar: string | null | undefined
|
||||
setUserAvatar?: React.Dispatch<React.SetStateAction<string | null>>
|
||||
}) {
|
||||
const initials = getInitials(displayName || handle)
|
||||
|
@ -92,7 +92,7 @@ export function UserAvatar({
|
|||
// setUserAvatar is only passed as prop on the EditProfile component
|
||||
return setUserAvatar != null && IMAGES_ENABLED ? (
|
||||
<TouchableOpacity onPress={handleEditAvatar}>
|
||||
{userAvatar != null ? (
|
||||
{userAvatar ? (
|
||||
<Image style={styles.avatarImage} source={{uri: userAvatar}} />
|
||||
) : (
|
||||
renderSvg(size, initials)
|
||||
|
@ -105,7 +105,7 @@ export function UserAvatar({
|
|||
/>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
) : userAvatar != null ? (
|
||||
) : userAvatar ? (
|
||||
<Image
|
||||
style={styles.avatarImage}
|
||||
resizeMode="stretch"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue