update Drawer.js, Comments.js and User.js

master
Reza_ashrafi 2 years ago
parent 9af3148b36
commit cb37a9b695
  1. 4
      src/components/Drawer.js
  2. 6
      src/screens/Product/components/Comments.js
  3. 8
      src/screens/Profile/components/User.js

@ -399,7 +399,9 @@ const Drawer = ({
>
<Avatar
source={
`https://dnvn.ir/api/v1/file/${user?.picFileIds}` || image
user?.picFileId
? `https://dnvn.ir/api/v1/file/${user?.picFileId}`
: null
}
size={width / 6}
action={() => pickImage()}

@ -153,7 +153,11 @@ const AddComment = ({
style={[tw("flex items-end")]}
>
<Avatar
source={`https://dnvn.ir/api/v1/file/${user?.picFileId}`}
source={
user?.picFileId
? `https://dnvn.ir/api/v1/file/${user?.picFileId}`
: null
}
size={mobile ? width / 5.5 : width / 7}
/>
<TextInput

@ -32,7 +32,7 @@ const User = ({ user, mobile, theme, upload }) => {
quality: 1,
});
upload({file : result, name : 'file'});
upload({ file: result, name: "file" });
if (!result.cancelled) {
setImage(result.uri);
@ -55,7 +55,11 @@ const User = ({ user, mobile, theme, upload }) => {
>
<View style={tw(`flex items-center flex-row-reverse`)}>
<Avatar
source={`https://dnvn.ir/api/v1/file/${user?.picFileId}` || image}
source={
user?.picFileId
? `https://dnvn.ir/api/v1/file/${user?.picFileId}`
: null
}
size={mobile ? width / 5.5 : width / 7}
action={() => pickImage()}
/>

Loading…
Cancel
Save