diff options
author | 2018-12-09 20:48:25 +0100 | |
---|---|---|
committer | 2018-12-09 20:48:25 +0100 | |
commit | 5d6164973e92fa8a3e3c18a0eb2e29494aea4f48 (patch) | |
tree | 382e6c672bbc0f7582b3b627b02111dcce902894 /src/containers | |
parent | Add React 16 didCatch/ErrorBoundary component (diff) | |
download | ferdium-app-5d6164973e92fa8a3e3c18a0eb2e29494aea4f48.tar.gz ferdium-app-5d6164973e92fa8a3e3c18a0eb2e29494aea4f48.tar.zst ferdium-app-5d6164973e92fa8a3e3c18a0eb2e29494aea4f48.zip |
Fix linting issues
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/auth/AuthLayoutContainer.js | 4 | ||||
-rw-r--r-- | src/containers/settings/RecipesScreen.js | 10 | ||||
-rw-r--r-- | src/containers/subscription/SubscriptionFormScreen.js | 2 |
3 files changed, 10 insertions, 6 deletions
diff --git a/src/containers/auth/AuthLayoutContainer.js b/src/containers/auth/AuthLayoutContainer.js index b73598f3d..762929dc6 100644 --- a/src/containers/auth/AuthLayoutContainer.js +++ b/src/containers/auth/AuthLayoutContainer.js | |||
@@ -18,7 +18,9 @@ export default @inject('stores', 'actions') @observer class AuthLayoutContainer | |||
18 | }; | 18 | }; |
19 | 19 | ||
20 | render() { | 20 | render() { |
21 | const { stores, actions, children, location } = this.props; | 21 | const { |
22 | stores, actions, children, location, | ||
23 | } = this.props; | ||
22 | const { app, features, globalError } = stores; | 24 | const { app, features, globalError } = stores; |
23 | 25 | ||
24 | const isLoadingBaseFeatures = features.defaultFeaturesRequest.isExecuting | 26 | const isLoadingBaseFeatures = features.defaultFeaturesRequest.isExecuting |
diff --git a/src/containers/settings/RecipesScreen.js b/src/containers/settings/RecipesScreen.js index 1f05b6510..b3d758c87 100644 --- a/src/containers/settings/RecipesScreen.js +++ b/src/containers/settings/RecipesScreen.js | |||
@@ -16,7 +16,7 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
16 | static propTypes = { | 16 | static propTypes = { |
17 | params: PropTypes.shape({ | 17 | params: PropTypes.shape({ |
18 | filter: PropTypes.string, | 18 | filter: PropTypes.string, |
19 | }).isRequired, | 19 | }), |
20 | }; | 20 | }; |
21 | 21 | ||
22 | static defaultProps = { | 22 | static defaultProps = { |
@@ -30,6 +30,8 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
30 | currentFilter: 'featured', | 30 | currentFilter: 'featured', |
31 | }; | 31 | }; |
32 | 32 | ||
33 | autorunDisposer = null; | ||
34 | |||
33 | componentDidMount() { | 35 | componentDidMount() { |
34 | gaPage('Settings/Recipe Dashboard/Featured'); | 36 | gaPage('Settings/Recipe Dashboard/Featured'); |
35 | 37 | ||
@@ -55,8 +57,6 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
55 | this.autorunDisposer(); | 57 | this.autorunDisposer(); |
56 | } | 58 | } |
57 | 59 | ||
58 | autorunDisposer = null; | ||
59 | |||
60 | searchRecipes(needle) { | 60 | searchRecipes(needle) { |
61 | if (needle === '') { | 61 | if (needle === '') { |
62 | this.resetSearch(); | 62 | this.resetSearch(); |
@@ -72,7 +72,9 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
72 | } | 72 | } |
73 | 73 | ||
74 | render() { | 74 | render() { |
75 | const { recipePreviews, recipes, services, user } = this.props.stores; | 75 | const { |
76 | recipePreviews, recipes, services, user, | ||
77 | } = this.props.stores; | ||
76 | const { showAddServiceInterface } = this.props.actions.service; | 78 | const { showAddServiceInterface } = this.props.actions.service; |
77 | 79 | ||
78 | const { filter } = this.props.params; | 80 | const { filter } = this.props.params; |
diff --git a/src/containers/subscription/SubscriptionFormScreen.js b/src/containers/subscription/SubscriptionFormScreen.js index 50ed19bef..3eb7b6255 100644 --- a/src/containers/subscription/SubscriptionFormScreen.js +++ b/src/containers/subscription/SubscriptionFormScreen.js | |||
@@ -12,7 +12,7 @@ const { BrowserWindow } = remote; | |||
12 | export default @inject('stores', 'actions') @observer class SubscriptionFormScreen extends Component { | 12 | export default @inject('stores', 'actions') @observer class SubscriptionFormScreen extends Component { |
13 | static propTypes = { | 13 | static propTypes = { |
14 | onCloseWindow: PropTypes.func, | 14 | onCloseWindow: PropTypes.func, |
15 | content: PropTypes.oneOrManyChildElements, | 15 | content: PropTypes.node, |
16 | showSkipOption: PropTypes.bool, | 16 | showSkipOption: PropTypes.bool, |
17 | skipAction: PropTypes.func, | 17 | skipAction: PropTypes.func, |
18 | skipButtonLabel: PropTypes.string, | 18 | skipButtonLabel: PropTypes.string, |