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