diff options
| author | Ivan Chen <ivan@tagg.id> | 2021-03-25 15:00:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-25 15:00:48 -0400 |
| commit | 99de9c8402f470ead242a81510dc2764ae7d9e66 (patch) | |
| tree | 7bf2feb0f1a57f1c695ddea51afb9e95abf03f0a /src/store/initialStates.ts | |
| parent | 75c08439fe04666a63431bf56e4b2fa7fb05cbbe (diff) | |
| parent | 54de628b27647099170bc6d5eea7110c8dd5e8f0 (diff) | |
Merge pull request #323 from IvanIFChen/tma698-api-profile
[TMA-698] api/profile
Diffstat (limited to 'src/store/initialStates.ts')
| -rw-r--r-- | src/store/initialStates.ts | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/store/initialStates.ts b/src/store/initialStates.ts index 28a4d10a..47ab8f39 100644 --- a/src/store/initialStates.ts +++ b/src/store/initialStates.ts @@ -3,14 +3,14 @@ import { MomentType, NotificationType, ProfilePreviewType, - ProfileType, + ProfileInfoType, ScreenType, SocialAccountType, UserType, UserXType, } from '../types'; -export const NO_PROFILE: ProfileType = { +export const NO_PROFILE: ProfileInfoType = { biography: '', website: '', name: '', @@ -25,6 +25,7 @@ export const NO_PROFILE: ProfileType = { tiktok: '', friendship_status: 'no_record', friendship_requester_id: '', + is_private: true, }; export const EMPTY_MOMENTS_LIST = <MomentType[]>[]; @@ -40,9 +41,9 @@ export const EMPTY_PROFILE_PREVIEW_LIST = <ProfilePreviewType[]>[]; export const NO_USER_DATA = { user: <UserType>NO_USER, - profile: <ProfileType>NO_PROFILE, - avatar: <string | null>'', - cover: <string | null>'', + profile: <ProfileInfoType>NO_PROFILE, + avatar: <string | undefined>undefined, + cover: <string | undefined>undefined, isOnboardedUser: false, newVersionAvailable: false, newNotificationReceived: false, @@ -97,8 +98,8 @@ export const EMPTY_USER_X = <UserXType>{ socialAccounts: NO_SOCIAL_ACCOUNTS, user: NO_USER, profile: NO_PROFILE, - avatar: '', - cover: '', + avatar: undefined, + cover: undefined, }; /** |
