Max Red - Beautify code, replacing another for using .map [skip ci]

This commit is contained in:
ivan 2017-01-16 12:20:22 -03:00
parent 7c19ef1716
commit 9fbf53d586
1 changed files with 5 additions and 17 deletions

View File

@ -88,24 +88,12 @@ class Stats extends React.Component {
getDropDownProps() { getDropDownProps() {
return { return {
items: [ items: ['Last 7 days', 'Last 30 days', 'Last 90 days', 'Last 365 days'].map((name) => {
{ return {
content: 'Last 7 days', content: name,
icon: '' icon: ''
}, };
{ }),
content: 'Last 30 days',
icon: ''
},
{
content: 'Last 90 days',
icon: ''
},
{
content: 'Last 365 days',
icon: ''
}
],
onChange: this.onDropDownChange.bind(this), onChange: this.onDropDownChange.bind(this),
className: 'stats__dropdown' className: 'stats__dropdown'
} }