mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-27 03:14:56 +03:00
discard guest filtesr in favour of already available global filters
This commit is contained in:
parent
8409c6c86e
commit
7e3d31d29a
@ -2,7 +2,6 @@ export const DEFAULT_FEED_FILTERS = ['friends', 'communities', 'blog'];
|
|||||||
export const DEFAULT_COMMUNITY_FILTERS = ['trending', 'hot', 'created'];
|
export const DEFAULT_COMMUNITY_FILTERS = ['trending', 'hot', 'created'];
|
||||||
export const DEFAULT_PROFILE_FILTERS = ['blog', 'posts', 'comments'];
|
export const DEFAULT_PROFILE_FILTERS = ['blog', 'posts', 'comments'];
|
||||||
export const DEFAULT_OWN_PROFILE_FILTERS = ['blog', 'posts', 'replies'];
|
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 } = {
|
export const FEED_SCREEN_FILTER_MAP: { [key: string]: string } = {
|
||||||
friends: 'home.friends',
|
friends: 'home.friends',
|
||||||
|
@ -9,7 +9,7 @@ import { Header, TabbedPosts } from '../../../components';
|
|||||||
// Styles
|
// Styles
|
||||||
import styles from './feedStyles';
|
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 { useAppSelector } from '../../../hooks';
|
||||||
import CommentsTabContent from '../../../components/profile/children/commentsTabContent';
|
import CommentsTabContent from '../../../components/profile/children/commentsTabContent';
|
||||||
@ -38,7 +38,7 @@ const FeedScreen = () => {
|
|||||||
|
|
||||||
|
|
||||||
const feedFilters = useMemo(() =>
|
const feedFilters = useMemo(() =>
|
||||||
isLoggedIn ? mainTabs || DEFAULT_FEED_FILTERS : GUEST_FEED_FILTERS
|
isLoggedIn ? mainTabs || DEFAULT_FEED_FILTERS : GLOBAL_POST_FILTERS
|
||||||
, [isLoggedIn, mainTabs])
|
, [isLoggedIn, mainTabs])
|
||||||
|
|
||||||
const tabFilters = useMemo(() =>
|
const tabFilters = useMemo(() =>
|
||||||
|
Loading…
Reference in New Issue
Block a user