Skip to content

Commit

Permalink
fix: edit avatar on room info should not show fetchImageUrl button
Browse files Browse the repository at this point in the history
  • Loading branch information
OtavioStasiak committed Dec 6, 2024
1 parent 70796e6 commit 011fd66
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions app/views/ChangeAvatarView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,24 +222,25 @@ const ChangeAvatarView = () => {
)}
</View>
{context === 'profile' ? (
<FormTextInput
label={I18n.t('Avatar_Url')}
onChangeText={onChangeText}
testID='change-avatar-view-avatar-url'
containerStyle={{ marginBottom: 0 }}
/>
<>
<FormTextInput
label={I18n.t('Avatar_Url')}
onChangeText={onChangeText}
testID='change-avatar-view-avatar-url'
containerStyle={{ marginBottom: 0 }}
/>
<Button
title={I18n.t('Fetch_image_from_URL')}
type='secondary'
disabled={saving}
backgroundColor={colors.buttonBackgroundSecondaryDefault}
onPress={fetchImageFromURL}
testID='change-avatar-view-take-a-photo'
style={{ marginTop: 36, marginBottom: 0 }}
/>
</>
) : null}

<Button
title={I18n.t('Fetch_image_from_URL')}
type='secondary'
disabled={saving}
backgroundColor={colors.buttonBackgroundSecondaryDefault}
onPress={fetchImageFromURL}
testID='change-avatar-view-take-a-photo'
style={{ marginTop: 36, marginBottom: 0 }}
/>

<List.Separator style={styles.separator} />
{context === 'profile' ? (
<AvatarSuggestion
Expand Down

0 comments on commit 011fd66

Please sign in to comment.