Remove recent option

This commit is contained in:
kyleplo 2018-08-01 09:16:41 -04:00 committed by GitHub
parent a6bb77de8a
commit 7091e65fb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,7 @@ class Search extends React.Component {
} }
const start = pathname.lastIndexOf('/'); const start = pathname.lastIndexOf('/');
const type = pathname.substring(start + 1, pathname.length); const type = pathname.substring(start + 1, pathname.length);
const modeOptions = ['trending', 'popular', 'recent', '']; const modeOptions = ['trending', 'popular', ''];
return { return {
acceptableModes: modeOptions, acceptableModes: modeOptions,
tab: type, tab: type,
@ -202,15 +202,11 @@ class Search extends React.Component {
options={[ options={[
{ {
value: 'trending', value: 'trending',
label: this.props.intl.formatMessage({id: 'explore.trending'}) label: this.props.intl.formatMessage({id: 'search.trending'})
}, },
{ {
value: 'popular', value: 'popular',
label: this.props.intl.formatMessage({id: 'explore.popular'}) label: this.props.intl.formatMessage({id: 'search.popular'})
},
{
value: 'recent',
label: this.props.intl.formatMessage({id: 'explore.recent'})
} }
]} ]}
value={this.state.mode} value={this.state.mode}