mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
Remove recent option
This commit is contained in:
parent
a6bb77de8a
commit
7091e65fb5
1 changed files with 3 additions and 7 deletions
|
@ -78,7 +78,7 @@ class Search extends React.Component {
|
|||
}
|
||||
const start = pathname.lastIndexOf('/');
|
||||
const type = pathname.substring(start + 1, pathname.length);
|
||||
const modeOptions = ['trending', 'popular', 'recent', ''];
|
||||
const modeOptions = ['trending', 'popular', ''];
|
||||
return {
|
||||
acceptableModes: modeOptions,
|
||||
tab: type,
|
||||
|
@ -202,15 +202,11 @@ class Search extends React.Component {
|
|||
options={[
|
||||
{
|
||||
value: 'trending',
|
||||
label: this.props.intl.formatMessage({id: 'explore.trending'})
|
||||
label: this.props.intl.formatMessage({id: 'search.trending'})
|
||||
},
|
||||
{
|
||||
value: 'popular',
|
||||
label: this.props.intl.formatMessage({id: 'explore.popular'})
|
||||
},
|
||||
{
|
||||
value: 'recent',
|
||||
label: this.props.intl.formatMessage({id: 'explore.recent'})
|
||||
label: this.props.intl.formatMessage({id: 'search.popular'})
|
||||
}
|
||||
]}
|
||||
value={this.state.mode}
|
||||
|
|
Loading…
Reference in a new issue