Array literal

This commit is contained in:
David Baker 2017-05-26 13:36:58 +01:00
parent d688eade43
commit 92579cf463

View File

@ -19,15 +19,15 @@ import { _t } from 'matrix-react-sdk/lib/languageHandler';
import DateUtils from 'matrix-react-sdk/lib/DateUtils';
function getdaysArray() {
var days = [];
days.push(_t('Sunday'));
days.push(_t('Monday'));
days.push(_t('Tuesday'));
days.push(_t('Wednesday'));
days.push(_t('Thursday'));
days.push(_t('Friday'));
days.push(_t('Saturday'));
return days;
return [
_t('Sunday'),
_t('Monday'),
_t('Tuesday'),
_t('Wednesday'),
_t('Thursday'),
_t('Friday'),
_t('Saturday'),
];
}
module.exports = React.createClass({