Skip to content

Commit

Permalink
remove extra view
Browse files Browse the repository at this point in the history
  • Loading branch information
nexarvo committed May 23, 2024
1 parent d67f0e4 commit 058815a
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions src/components/AvatarWithImagePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,20 +323,18 @@ function AvatarWithImagePicker({
ref={anchorRef}
>
<OfflineWithFeedback pendingAction={pendingAction}>
<View>
{source ? (
<Avatar
containerStyles={avatarStyle}
imageStyles={[avatarStyle, styles.alignSelfCenter]}
source={source}
fallbackIcon={fallbackIcon}
size={size}
type={type}
/>
) : (
<DefaultAvatar />
)}
</View>
{source ? (
<Avatar
containerStyles={avatarStyle}
imageStyles={[avatarStyle, styles.alignSelfCenter]}
source={source}
fallbackIcon={fallbackIcon}
size={size}
type={type}
/>
) : (
<DefaultAvatar />
)}
</OfflineWithFeedback>
{!disabled && (
<View style={StyleSheet.flatten([styles.smallEditIcon, styles.smallAvatarEditIcon, editIconStyle])}>
Expand Down

0 comments on commit 058815a

Please sign in to comment.