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 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}
|
||||||
|
|
Loading…
Reference in a new issue