From f30bb4069d38b60e45dc35e6b4dd3650a963b2fd Mon Sep 17 00:00:00 2001 From: noumantahir Date: Sun, 22 Sep 2024 12:28:35 +0500 Subject: [PATCH] removed unused getFor prop --- src/components/profile/profileView.js | 1 - src/components/tabbedPosts/types/tabbedPosts.types.ts | 2 -- src/screens/feed/screen/feedScreen.tsx | 1 - 3 files changed, 4 deletions(-) diff --git a/src/components/profile/profileView.js b/src/components/profile/profileView.js index 12d26a073..ca8cb97d5 100644 --- a/src/components/profile/profileView.js +++ b/src/components/profile/profileView.js @@ -243,7 +243,6 @@ class ProfileView extends PureComponent { filterOptionsValue={tabs} selectedOptionIndex={selectedIndex} pageType={pageType} - getFor="blog" feedUsername={username} handleOnScrollBeginDrag={isSummaryOpen ? this._handleOnScroll : null} forceLoadPost={forceLoadPost} diff --git a/src/components/tabbedPosts/types/tabbedPosts.types.ts b/src/components/tabbedPosts/types/tabbedPosts.types.ts index d26c7e98c..06dafe3ed 100644 --- a/src/components/tabbedPosts/types/tabbedPosts.types.ts +++ b/src/components/tabbedPosts/types/tabbedPosts.types.ts @@ -6,7 +6,6 @@ export interface TabbedPostsProps { selectedOptionIndex: number; feedSubfilterOptions: string[]; feedSubfilterOptionsValue: string[]; - getFor: string; pageType: 'main' | 'community' | 'profile' | 'ownProfile'; tag: string; forceLoadPosts: boolean; @@ -20,7 +19,6 @@ export interface PostsTabContentProps { filterKey: string; isFeedScreen: boolean; isInitialTab: boolean; - getFor: string; pageType: 'main' | 'profile' | 'ownProfile' | 'community'; feedUsername: string; tag: string; diff --git a/src/screens/feed/screen/feedScreen.tsx b/src/screens/feed/screen/feedScreen.tsx index 3a8cca739..3e3a3881a 100644 --- a/src/screens/feed/screen/feedScreen.tsx +++ b/src/screens/feed/screen/feedScreen.tsx @@ -67,7 +67,6 @@ const FeedScreen = () => { key={JSON.stringify(filterOptions)} // this hack of key change resets tabbedposts whenever filters chanage, effective to remove filter change android bug filterOptions={filterOptions} filterOptionsValue={mainTabs} - getFor={get(currentAccount, 'name', null) ? 'feed' : 'hot'} selectedOptionIndex={get(currentAccount, 'name', null) ? 0 : 2} feedUsername={get(currentAccount, 'name', null)} tabContentOverrides={tabContentOverrides}