From 3b7fc9f30f46d3a8a7670ea96592637715b37ee7 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Mon, 9 Nov 2020 12:03:27 -0600 Subject: [PATCH] Removed News from SearchLayout tabs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Removed: - News from SearchLayout tabs --- app/javascript/gabsocial/layouts/search_layout.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/app/javascript/gabsocial/layouts/search_layout.js b/app/javascript/gabsocial/layouts/search_layout.js index 543fd2ba..71d0a720 100644 --- a/app/javascript/gabsocial/layouts/search_layout.js +++ b/app/javascript/gabsocial/layouts/search_layout.js @@ -25,7 +25,6 @@ import { ExploreTimeline, HashtagTimeline, SidebarXS, - News, } from '../features/ui/util/async_components' class SearchLayout extends React.PureComponent { @@ -44,26 +43,21 @@ class SearchLayout extends React.PureComponent { onClick: () => this.setState({ currentExploreTabIndex: 0 }), component: ExploreTimeline, }, - { - title: 'News', - onClick: () => this.setState({ currentExploreTabIndex: 1 }), - component: News, - }, { title: '#Election2020', - onClick: () => this.setState({ currentExploreTabIndex: 2 }), + onClick: () => this.setState({ currentExploreTabIndex: 1 }), component: HashtagTimeline, componentParams: { params: { id: 'election2020' } }, }, { title: '#RiggedElection', - onClick: () => this.setState({ currentExploreTabIndex: 3 }), + onClick: () => this.setState({ currentExploreTabIndex: 2 }), component: HashtagTimeline, componentParams: { params: { id: 'riggedelection' } }, }, { title: '#StopTheSteal', - onClick: () => this.setState({ currentExploreTabIndex: 4 }), + onClick: () => this.setState({ currentExploreTabIndex: 3 }), component: HashtagTimeline, componentParams: { params: { id: 'stopthesteal' } }, },