From 7e3d31d29a7cbcb1ded67c4e4632d8621c6d8d5f Mon Sep 17 00:00:00 2001 From: noumantahir Date: Sun, 22 Sep 2024 13:16:58 +0500 Subject: [PATCH] discard guest filtesr in favour of already available global filters --- src/constants/options/filters.ts | 1 - src/screens/feed/screen/feedScreen.tsx | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/constants/options/filters.ts b/src/constants/options/filters.ts index 283be5470..6dddf47e8 100644 --- a/src/constants/options/filters.ts +++ b/src/constants/options/filters.ts @@ -2,7 +2,6 @@ export const DEFAULT_FEED_FILTERS = ['friends', 'communities', 'blog']; export const DEFAULT_COMMUNITY_FILTERS = ['trending', 'hot', 'created']; export const DEFAULT_PROFILE_FILTERS = ['blog', 'posts', 'comments']; export const DEFAULT_OWN_PROFILE_FILTERS = ['blog', 'posts', 'replies']; -export const GUEST_FEED_FILTERS = ['trending', 'hot', 'created']; export const FEED_SCREEN_FILTER_MAP: { [key: string]: string } = { friends: 'home.friends', diff --git a/src/screens/feed/screen/feedScreen.tsx b/src/screens/feed/screen/feedScreen.tsx index 9ba2fbb6e..5a973edf4 100644 --- a/src/screens/feed/screen/feedScreen.tsx +++ b/src/screens/feed/screen/feedScreen.tsx @@ -9,7 +9,7 @@ import { Header, TabbedPosts } from '../../../components'; // Styles import styles from './feedStyles'; -import {DEFAULT_FEED_FILTERS, GUEST_FEED_FILTERS, FEED_SCREEN_FILTER_MAP } from '../../../constants/options/filters'; +import {DEFAULT_FEED_FILTERS, GLOBAL_POST_FILTERS, FEED_SCREEN_FILTER_MAP } from '../../../constants/options/filters'; import { useAppSelector } from '../../../hooks'; import CommentsTabContent from '../../../components/profile/children/commentsTabContent'; @@ -38,7 +38,7 @@ const FeedScreen = () => { const feedFilters = useMemo(() => - isLoggedIn ? mainTabs || DEFAULT_FEED_FILTERS : GUEST_FEED_FILTERS + isLoggedIn ? mainTabs || DEFAULT_FEED_FILTERS : GLOBAL_POST_FILTERS , [isLoggedIn, mainTabs]) const tabFilters = useMemo(() =>