diff options
author | Stefan Malzner <stefan@adlk.io> | 2018-01-17 10:49:35 +0400 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2018-01-17 10:49:35 +0400 |
commit | 798bbe35dc7096c02b047c5c7f5acb8df7636e6b (patch) | |
tree | 70ca3fa325ab739d97ecfcb0e8548bce1c34ce0f | |
parent | Merge branch 'develop' into feature/remove-miner (diff) | |
download | ferdium-app-798bbe35dc7096c02b047c5c7f5acb8df7636e6b.tar.gz ferdium-app-798bbe35dc7096c02b047c5c7f5acb8df7636e6b.tar.zst ferdium-app-798bbe35dc7096c02b047c5c7f5acb8df7636e6b.zip |
Fix linting issues
-rw-r--r-- | src/components/settings/account/AccountDashboard.js | 2 | ||||
-rw-r--r-- | src/components/ui/Subscription.js | 2 | ||||
-rw-r--r-- | src/containers/settings/AccountScreen.js | 2 | ||||
-rw-r--r-- | src/containers/ui/SubscriptionFormScreen.js | 1 | ||||
-rw-r--r-- | src/stores/AppStore.js | 1 |
5 files changed, 3 insertions, 5 deletions
diff --git a/src/components/settings/account/AccountDashboard.js b/src/components/settings/account/AccountDashboard.js index 5d947954f..43272fe96 100644 --- a/src/components/settings/account/AccountDashboard.js +++ b/src/components/settings/account/AccountDashboard.js | |||
@@ -1,7 +1,7 @@ | |||
1 | import React, { Component } from 'react'; | 1 | import React, { Component } from 'react'; |
2 | import PropTypes from 'prop-types'; | 2 | import PropTypes from 'prop-types'; |
3 | import { observer, PropTypes as MobxPropTypes } from 'mobx-react'; | 3 | import { observer, PropTypes as MobxPropTypes } from 'mobx-react'; |
4 | import { defineMessages, intlShape, FormattedMessage } from 'react-intl'; | 4 | import { defineMessages, intlShape } from 'react-intl'; |
5 | import ReactTooltip from 'react-tooltip'; | 5 | import ReactTooltip from 'react-tooltip'; |
6 | import moment from 'moment'; | 6 | import moment from 'moment'; |
7 | 7 | ||
diff --git a/src/components/ui/Subscription.js b/src/components/ui/Subscription.js index e402588b6..41f8ba5d7 100644 --- a/src/components/ui/Subscription.js +++ b/src/components/ui/Subscription.js | |||
@@ -84,7 +84,6 @@ export default class SubscriptionForm extends Component { | |||
84 | skipAction: PropTypes.func, | 84 | skipAction: PropTypes.func, |
85 | skipButtonLabel: PropTypes.string, | 85 | skipButtonLabel: PropTypes.string, |
86 | hideInfo: PropTypes.bool.isRequired, | 86 | hideInfo: PropTypes.bool.isRequired, |
87 | openExternalUrl: PropTypes.func.isRequired, | ||
88 | }; | 87 | }; |
89 | 88 | ||
90 | static defaultProps ={ | 89 | static defaultProps ={ |
@@ -146,7 +145,6 @@ export default class SubscriptionForm extends Component { | |||
146 | skipAction, | 145 | skipAction, |
147 | skipButtonLabel, | 146 | skipButtonLabel, |
148 | hideInfo, | 147 | hideInfo, |
149 | openExternalUrl, | ||
150 | } = this.props; | 148 | } = this.props; |
151 | const { intl } = this.context; | 149 | const { intl } = this.context; |
152 | 150 | ||
diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js index 21d0fe20a..c5c2982b0 100644 --- a/src/containers/settings/AccountScreen.js +++ b/src/containers/settings/AccountScreen.js | |||
@@ -59,7 +59,7 @@ export default class AccountScreen extends Component { | |||
59 | } | 59 | } |
60 | 60 | ||
61 | render() { | 61 | render() { |
62 | const { user, payment, app } = this.props.stores; | 62 | const { user, payment } = this.props.stores; |
63 | const { openExternalUrl } = this.props.actions.app; | 63 | const { openExternalUrl } = this.props.actions.app; |
64 | const { user: userActions } = this.props.actions; | 64 | const { user: userActions } = this.props.actions; |
65 | 65 | ||
diff --git a/src/containers/ui/SubscriptionFormScreen.js b/src/containers/ui/SubscriptionFormScreen.js index 3d9e413e1..ac4593670 100644 --- a/src/containers/ui/SubscriptionFormScreen.js +++ b/src/containers/ui/SubscriptionFormScreen.js | |||
@@ -34,7 +34,6 @@ export default class SubscriptionFormScreen extends Component { | |||
34 | actions, | 34 | actions, |
35 | stores, | 35 | stores, |
36 | onCloseWindow, | 36 | onCloseWindow, |
37 | skipAction, | ||
38 | } = this.props; | 37 | } = this.props; |
39 | 38 | ||
40 | const interval = plan; | 39 | const interval = plan; |
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 772b33c67..06c43f83f 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -127,6 +127,7 @@ export default class AppStore extends Store { | |||
127 | // Reload all services after a healthy nap | 127 | // Reload all services after a healthy nap |
128 | // Alternative solution for powerMonitor as the resume event is not fired | 128 | // Alternative solution for powerMonitor as the resume event is not fired |
129 | // More information: https://github.com/electron/electron/issues/1615 | 129 | // More information: https://github.com/electron/electron/issues/1615 |
130 | const TIMEOUT = 5000; | ||
130 | let lastTime = (new Date()).getTime(); | 131 | let lastTime = (new Date()).getTime(); |
131 | setInterval(() => { | 132 | setInterval(() => { |
132 | const currentTime = (new Date()).getTime(); | 133 | const currentTime = (new Date()).getTime(); |