discard guest filtesr in favour of already available global filters

This commit is contained in:
noumantahir 2024-09-22 13:16:58 +05:00
parent 8409c6c86e
commit 7e3d31d29a
2 changed files with 2 additions and 3 deletions

View File

@ -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',

View File

@ -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(() =>