From 49ed044f5103cf6288fcf5b3ff6d3d720795860c Mon Sep 17 00:00:00 2001 From: Husam Salhab <47015061+hsalhab@users.noreply.github.com> Date: Tue, 22 Dec 2020 11:49:50 -0500 Subject: update endpoints (#143) --- src/components/profile/ProfilePreview.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components') 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 = ({ 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; -- cgit v1.2.3-70-g09d2