#1772 - adjustment for PR
This commit is contained in:
parent
150cfe7758
commit
ffca29a5da
2 changed files with 6 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
// @flow
|
// @flow
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ButtonTransaction from 'component/common/transaction-link';
|
import ButtonTransaction from 'component/common/transaction-link';
|
||||||
import { remote } from 'electron';
|
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
|
||||||
type Reward = {
|
type Reward = {
|
||||||
|
@ -19,8 +18,6 @@ type Props = {
|
||||||
const RewardListClaimed = (props: Props) => {
|
const RewardListClaimed = (props: Props) => {
|
||||||
const { rewards } = props;
|
const { rewards } = props;
|
||||||
|
|
||||||
moment.locale(remote.app.getLocale());
|
|
||||||
|
|
||||||
if (!rewards || !rewards.length) {
|
if (!rewards || !rewards.length) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
/* eslint-disable react/jsx-filename-extension */
|
/* eslint-disable react/jsx-filename-extension */
|
||||||
|
/* eslint-disable no-console */
|
||||||
import App from 'component/app';
|
import App from 'component/app';
|
||||||
import SnackBar from 'component/snackBar';
|
import SnackBar from 'component/snackBar';
|
||||||
import SplashScreen from 'component/splash';
|
import SplashScreen from 'component/splash';
|
||||||
|
import moment from 'moment';
|
||||||
import * as ACTIONS from 'constants/action_types';
|
import * as ACTIONS from 'constants/action_types';
|
||||||
import { ipcRenderer, remote, shell } from 'electron';
|
import { ipcRenderer, remote, shell } from 'electron';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
@ -148,6 +150,8 @@ document.addEventListener('click', event => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const init = () => {
|
const init = () => {
|
||||||
|
moment.locale(remote.app.getLocale());
|
||||||
|
|
||||||
autoUpdater.on('error', error => {
|
autoUpdater.on('error', error => {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error(error.message);
|
console.error(error.message);
|
||||||
|
@ -201,3 +205,5 @@ const init = () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
init();
|
init();
|
||||||
|
|
||||||
|
/* eslint-enable no-console */
|
||||||
|
|
Loading…
Reference in a new issue