diff options
author | Husam Salhab <47015061+hsalhab@users.noreply.github.com> | 2020-12-22 11:49:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-22 11:49:50 -0500 |
commit | 49ed044f5103cf6288fcf5b3ff6d3d720795860c (patch) | |
tree | 0bb15247eff667636c9d96863e5a9f78d8179f4e /src/components | |
parent | 8dfc9d14848c7979f2df71a0d70c1e56c5510831 (diff) |
update endpoints (#143)
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/profile/ProfilePreview.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/profile/ProfilePreview.tsx b/src/components/profile/ProfilePreview.tsx index 9dd03c54..71fd2a85 100644 --- a/src/components/profile/ProfilePreview.tsx +++ b/src/components/profile/ProfilePreview.tsx @@ -12,7 +12,7 @@ import { import {useNavigation} from '@react-navigation/native'; import RNFetchBlob from 'rn-fetch-blob'; import AsyncStorage from '@react-native-community/async-storage'; -import {AVATAR_PHOTO_ENDPOINT} from '../../constants'; +import {PROFILE_PHOTO_THUMBNAIL_ENDPOINT} from '../../constants'; import {UserType, PreviewType} from '../../types'; import {isUserBlocked} from '../../services'; import {useSelector, useDispatch, useStore} from 'react-redux'; @@ -60,7 +60,7 @@ const ProfilePreview: React.FC<ProfilePreviewProps> = ({ const response = await RNFetchBlob.config({ fileCache: true, appendExt: 'jpg', - }).fetch('GET', AVATAR_PHOTO_ENDPOINT + `${id}/`, { + }).fetch('GET', PROFILE_PHOTO_THUMBNAIL_ENDPOINT + `${id}/`, { Authorization: 'Token ' + token, }); const status = response.info().status; |