From 0fd892ad288f2e1eaaa4fdf5e1fd6f15dbd45860 Mon Sep 17 00:00:00 2001
From: Ashm Walia <40498934+ashmgarv@users.noreply.github.com>
Date: Fri, 4 Dec 2020 08:50:24 -0800
Subject: [TMA - 398 AND TMA-430] Replace Providers with Redux Store (#125)

* First

* WIP

* Thunk

* Some more comments

* sc

* recent searches and follounfollow

* Edit profile dummy

* Block / unblock and some cleanup

* Replace auth provider

* Sc

* Delete AP  after rebase

* Discover users

* Cleanup

* More cleanup

* Replace profile provider

* Fixed build failure

* Fixed a bug reported

* Prevent app crash when backend server is down
---
 src/routes/profile/ProfileStack.tsx | 36 ++++++++++++++++++++----------------
 1 file changed, 20 insertions(+), 16 deletions(-)

(limited to 'src/routes/profile/ProfileStack.tsx')

diff --git a/src/routes/profile/ProfileStack.tsx b/src/routes/profile/ProfileStack.tsx
index 5590f78a..e7db9f37 100644
--- a/src/routes/profile/ProfileStack.tsx
+++ b/src/routes/profile/ProfileStack.tsx
@@ -1,41 +1,45 @@
+/**
+ * Note the name userXId here, it refers to the id of the user being visited
+ */
 import {createStackNavigator} from '@react-navigation/stack';
-import {MomentType, ProfilePreviewType, SocialAccountType} from '../../types';
+import {MomentType, ScreenType} from '../../types';
 
 export type ProfileStackParams = {
-  Search: undefined;
+  Search: {
+    screenType: ScreenType;
+  };
   Profile: {
-    isProfileView: boolean;
-    username: string;
-    userId: string;
+    userXId: string | undefined;
+    screenType: ScreenType;
   };
   SocialMediaTaggs: {
     socialMediaType: string;
-    socialMediaHandle: string;
-    isProfileView: boolean;
-    name: string;
-    accountData: SocialAccountType;
-    avatar: string;
+    userXId: string | undefined;
+    screenType: ScreenType;
   };
   CaptionScreen: {
     title: string;
     image: object;
+    screenType: ScreenType;
   };
   IndividualMoment: {
     moment: MomentType;
-    isProfileView: boolean;
-    username: string;
+    userXId: string | undefined;
+    screenType: ScreenType;
   };
   MomentCommentsScreen: {
-    isProfileView: boolean;
     moment_id: string;
+    userXId: string | undefined;
+    screenType: ScreenType;
   };
   FollowersListScreen: {
     isFollowers: boolean;
-    list: ProfilePreviewType[];
+    userXId: string | undefined;
+    screenType: ScreenType;
   };
   EditProfile: {
-    userId: boolean;
-    username: ProfilePreviewType[];
+    userId: string;
+    username: string;
   };
 };
 
-- 
cgit v1.2.3-70-g09d2

