aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-16 13:27:09 -0400
committerIvan Chen <ivan@tagg.id>2021-03-17 18:38:08 -0400
commit8022d908ca09860424529d818e210d63fff9f398 (patch)
tree592bd07f0b47b7f69abbe564cc81d7b35e45e28e /src
parent0f406a2305421a69151e53af3c41350d9b976cc8 (diff)
better fix for images
Diffstat (limited to 'src')
-rw-r--r--src/assets/images/avatar-placeholder@2x.png (renamed from src/assets/images/avatar-placeholder.png)bin6245 -> 6245 bytes
-rw-r--r--src/assets/images/avatar-placeholder@3x.pngbin0 -> 7604 bytes
-rw-r--r--src/assets/images/cover-placeholder@2x.png (renamed from src/assets/images/cover-placeholder.png)bin8875 -> 8875 bytes
-rw-r--r--src/assets/images/cover-placeholder@3x.pngbin0 -> 13944 bytes
-rw-r--r--src/services/UserProfileService.ts2
-rw-r--r--src/store/initialStates.ts9
-rw-r--r--src/types/types.ts4
7 files changed, 6 insertions, 9 deletions
diff --git a/src/assets/images/avatar-placeholder.png b/src/assets/images/avatar-placeholder@2x.png
index d038441e..d038441e 100644
--- a/src/assets/images/avatar-placeholder.png
+++ b/src/assets/images/avatar-placeholder@2x.png
Binary files differ
diff --git a/src/assets/images/avatar-placeholder@3x.png b/src/assets/images/avatar-placeholder@3x.png
new file mode 100644
index 00000000..814472ec
--- /dev/null
+++ b/src/assets/images/avatar-placeholder@3x.png
Binary files differ
diff --git a/src/assets/images/cover-placeholder.png b/src/assets/images/cover-placeholder@2x.png
index 402ac1fe..402ac1fe 100644
--- a/src/assets/images/cover-placeholder.png
+++ b/src/assets/images/cover-placeholder@2x.png
Binary files differ
diff --git a/src/assets/images/cover-placeholder@3x.png b/src/assets/images/cover-placeholder@3x.png
new file mode 100644
index 00000000..be87023d
--- /dev/null
+++ b/src/assets/images/cover-placeholder@3x.png
Binary files differ
diff --git a/src/services/UserProfileService.ts b/src/services/UserProfileService.ts
index 05fd5f82..de24d2d6 100644
--- a/src/services/UserProfileService.ts
+++ b/src/services/UserProfileService.ts
@@ -1,7 +1,6 @@
import AsyncStorage from '@react-native-community/async-storage';
import moment from 'moment';
import {Alert} from 'react-native';
-import RNFetchBlob from 'rn-fetch-blob';
import {
GET_FB_POSTS_ENDPOINT,
GET_IG_POSTS_ENDPOINT,
@@ -10,7 +9,6 @@ import {
PASSWORD_RESET_ENDPOINT,
PROFILE_INFO_ENDPOINT,
PROFILE_PHOTO_ENDPOINT,
- PROFILE_PHOTO_THUMBNAIL_ENDPOINT,
REGISTER_ENDPOINT,
SEND_OTP_ENDPOINT,
TAGG_CUSTOMER_SUPPORT,
diff --git a/src/store/initialStates.ts b/src/store/initialStates.ts
index 275664cc..d89927a7 100644
--- a/src/store/initialStates.ts
+++ b/src/store/initialStates.ts
@@ -1,6 +1,5 @@
import {CommentThreadType} from './../types/types';
import {
- ExploreSectionType,
MomentType,
NotificationType,
ProfilePreviewType,
@@ -42,8 +41,8 @@ export const EMPTY_PROFILE_PREVIEW_LIST = <ProfilePreviewType[]>[];
export const NO_USER_DATA = {
user: <UserType>NO_USER,
profile: <ProfileType>NO_PROFILE,
- avatar: <string | undefined>'',
- cover: <string | undefined>'',
+ avatar: <string | undefined>undefined,
+ cover: <string | undefined>undefined,
isOnboardedUser: false,
newVersionAvailable: false,
newNotificationReceived: false,
@@ -98,8 +97,8 @@ export const EMPTY_USER_X = <UserXType>{
socialAccounts: NO_SOCIAL_ACCOUNTS,
user: NO_USER,
profile: NO_PROFILE,
- avatar: '',
- cover: '',
+ avatar: undefined,
+ cover: undefined,
};
/**
diff --git a/src/types/types.ts b/src/types/types.ts
index e068eeba..4f62310a 100644
--- a/src/types/types.ts
+++ b/src/types/types.ts
@@ -148,8 +148,8 @@ export interface UserXType {
momentCategories: string[];
user: UserType;
profile: ProfileType;
- avatar: string;
- cover: string;
+ avatar: string | undefined;
+ cover: string | undefined;
}
/**