diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-11-13 14:46:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 14:46:19 -0800 |
commit | 9fca7b3af6114d28e13f475395c8911c55b33cb1 (patch) | |
tree | 1cf22e7dfe3d4778d8eaf62b66c6d8ba3ef8c227 /src/view/screens/Profile.tsx | |
parent | b04748e703cede419a027f6bbb3c8180ed10eb1f (diff) | |
download | voidsky-9fca7b3af6114d28e13f475395c8911c55b33cb1.tar.zst |
Add feedgens tab to profile (#1889)
Diffstat (limited to 'src/view/screens/Profile.tsx')
-rw-r--r-- | src/view/screens/Profile.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx index 065a03f11..669afb371 100644 --- a/src/view/screens/Profile.tsx +++ b/src/view/screens/Profile.tsx @@ -11,6 +11,7 @@ import {CenteredView} from '../com/util/Views' import {ScreenHider} from 'view/com/util/moderation/ScreenHider' import {Feed} from 'view/com/posts/Feed' import {ProfileLists} from '../com/lists/ProfileLists' +import {ProfileFeedgens} from '../com/feeds/ProfileFeedgens' import {useStores} from 'state/index' import {ProfileHeader} from '../com/profile/ProfileHeader' import {PagerWithHeader} from 'view/com/pager/PagerWithHeader' @@ -140,7 +141,7 @@ function ProfileScreenLoaded({ const isMe = profile.did === currentAccount?.did const showLikesTab = isMe - const showFeedsTab = isMe || extraInfoQuery.data?.hasFeeds + const showFeedsTab = isMe || extraInfoQuery.data?.hasFeedgens const showListsTab = isMe || extraInfoQuery.data?.hasLists const sectionTitles = useMemo<string[]>(() => { return [ @@ -267,7 +268,7 @@ function ProfileScreenLoaded({ : null} {showFeedsTab ? ({onScroll, headerHeight, scrollElRef}) => ( - <ProfileLists // TODO put feeds here, using this temporarily to avoid bugs + <ProfileFeedgens did={profile.did} scrollElRef={scrollElRef} onScroll={onScroll} |