added IMAGES_ENABLED flag
This commit is contained in:
@@ -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 ? (
|
||||||
|
|||||||
@@ -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 ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user