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' } from 'react-native-image-crop-picker'
import {getGradient} from '../../lib/asset-gen' import {getGradient} from '../../lib/asset-gen'
import {colors} from '../../lib/styles' import {colors} from '../../lib/styles'
import { IMAGES_ENABLED } from '../../../build-flags'
export function UserAvatar({ export function UserAvatar({
isEditable = false, isEditable = false,
@@ -85,7 +86,7 @@ export function UserAvatar({
</Svg> </Svg>
) )
return isEditable ? ( return isEditable && IMAGES_ENABLED ? (
<TouchableOpacity onPress={handleEditAvatar}> <TouchableOpacity onPress={handleEditAvatar}>
{/* Added a react state temporary photo white the protocol does not support imagery */} {/* Added a react state temporary photo white the protocol does not support imagery */}
{uploadedImage != null ? ( {uploadedImage != null ? (
+2 -1
View File
@@ -9,6 +9,7 @@ import {
openCropper, openCropper,
openPicker, openPicker,
} from 'react-native-image-crop-picker' } from 'react-native-image-crop-picker'
import { IMAGES_ENABLED } from '../../../build-flags'
export function UserBanner({ export function UserBanner({
handle, handle,
@@ -75,7 +76,7 @@ export function UserBanner({
</Svg> </Svg>
) )
return isEditable ? ( return isEditable && IMAGES_ENABLED ? (
<TouchableOpacity onPress={handleEditBanner}> <TouchableOpacity onPress={handleEditBanner}>
{/* Added a react state temporary photo white the protocol does not support imagery */} {/* Added a react state temporary photo white the protocol does not support imagery */}
{uploadedImage != null ? ( {uploadedImage != null ? (