added IMAGES_ENABLED flag

This commit is contained in:
João Ferreiro
2022-12-05 17:00:41 +00:00
parent 65bd863e0f
commit cd37aa2b96
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -9,6 +9,7 @@ import {
} from 'react-native-image-crop-picker'
import {getGradient} from '../../lib/asset-gen'
import {colors} from '../../lib/styles'
import { IMAGES_ENABLED } from '../../../build-flags'
export function UserAvatar({
isEditable = false,
@@ -85,7 +86,7 @@ export function UserAvatar({
</Svg>
)
return isEditable ? (
return isEditable && IMAGES_ENABLED ? (
<TouchableOpacity onPress={handleEditAvatar}>
{/* Added a react state temporary photo white the protocol does not support imagery */}
{uploadedImage != null ? (
+2 -1
View File
@@ -9,6 +9,7 @@ import {
openCropper,
openPicker,
} from 'react-native-image-crop-picker'
import { IMAGES_ENABLED } from '../../../build-flags'
export function UserBanner({
handle,
@@ -75,7 +76,7 @@ export function UserBanner({
</Svg>
)
return isEditable ? (
return isEditable && IMAGES_ENABLED ? (
<TouchableOpacity onPress={handleEditBanner}>
{/* Added a react state temporary photo white the protocol does not support imagery */}
{uploadedImage != null ? (