Added News to SearchLayout top tabs
• Added: - News to SearchLayout top tabs
This commit is contained in:
parent
a614d3c5cd
commit
35793a7ff0
@ -25,6 +25,7 @@ import {
|
|||||||
ExploreTimeline,
|
ExploreTimeline,
|
||||||
HashtagTimeline,
|
HashtagTimeline,
|
||||||
SidebarXS,
|
SidebarXS,
|
||||||
|
News,
|
||||||
} from '../features/ui/util/async_components'
|
} from '../features/ui/util/async_components'
|
||||||
|
|
||||||
class SearchLayout extends React.PureComponent {
|
class SearchLayout extends React.PureComponent {
|
||||||
@ -44,20 +45,25 @@ class SearchLayout extends React.PureComponent {
|
|||||||
component: ExploreTimeline,
|
component: ExploreTimeline,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '#Election2020',
|
title: 'News',
|
||||||
onClick: () => this.setState({ currentExploreTabIndex: 1 }),
|
onClick: () => this.setState({ currentExploreTabIndex: 1 }),
|
||||||
|
component: News,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '#Election2020',
|
||||||
|
onClick: () => this.setState({ currentExploreTabIndex: 2 }),
|
||||||
component: HashtagTimeline,
|
component: HashtagTimeline,
|
||||||
componentParams: { params: { id: 'election2020' } },
|
componentParams: { params: { id: 'election2020' } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '#RiggedElection',
|
title: '#RiggedElection',
|
||||||
onClick: () => this.setState({ currentExploreTabIndex: 2 }),
|
onClick: () => this.setState({ currentExploreTabIndex: 3 }),
|
||||||
component: HashtagTimeline,
|
component: HashtagTimeline,
|
||||||
componentParams: { params: { id: 'riggedelection' } },
|
componentParams: { params: { id: 'riggedelection' } },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '#StopTheSteal',
|
title: '#StopTheSteal',
|
||||||
onClick: () => this.setState({ currentExploreTabIndex: 3 }),
|
onClick: () => this.setState({ currentExploreTabIndex: 4 }),
|
||||||
component: HashtagTimeline,
|
component: HashtagTimeline,
|
||||||
componentParams: { params: { id: 'stopthesteal' } },
|
componentParams: { params: { id: 'stopthesteal' } },
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user