diff options
author | Dominik Guzei <dominik.guzei@gmail.com> | 2019-08-01 14:12:30 +0200 |
---|---|---|
committer | Dominik Guzei <dominik.guzei@gmail.com> | 2019-08-01 14:12:30 +0200 |
commit | 5818e579f4baf6326250ac8d94d225675b7d8165 (patch) | |
tree | 296f14b506838b0f865a02d16788fac2e9aafecc /src/features/todos/containers | |
parent | add updated i18n messages (diff) | |
download | ferdium-app-5818e579f4baf6326250ac8d94d225675b7d8165.tar.gz ferdium-app-5818e579f4baf6326250ac8d94d225675b7d8165.tar.zst ferdium-app-5818e579f4baf6326250ac8d94d225675b7d8165.zip |
Fix eslint issues
Diffstat (limited to 'src/features/todos/containers')
-rw-r--r-- | src/features/todos/containers/TodosScreen.js | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/features/todos/containers/TodosScreen.js b/src/features/todos/containers/TodosScreen.js index 5b7c4531b..2b81bd728 100644 --- a/src/features/todos/containers/TodosScreen.js +++ b/src/features/todos/containers/TodosScreen.js | |||
@@ -5,26 +5,19 @@ import PropTypes from 'prop-types'; | |||
5 | import TodosWebview from '../components/TodosWebview'; | 5 | import TodosWebview from '../components/TodosWebview'; |
6 | import ErrorBoundary from '../../../components/util/ErrorBoundary'; | 6 | import ErrorBoundary from '../../../components/util/ErrorBoundary'; |
7 | import UserStore from '../../../stores/UserStore'; | 7 | import UserStore from '../../../stores/UserStore'; |
8 | import TodoStore from '../store'; | 8 | import { TODOS_MIN_WIDTH, todosStore } from '..'; |
9 | import { TODOS_MIN_WIDTH } from '..'; | 9 | import { todoActions } from '../actions'; |
10 | 10 | ||
11 | @inject('stores', 'actions') @observer | 11 | @inject('stores') @observer |
12 | class TodosScreen extends Component { | 12 | class TodosScreen extends Component { |
13 | static propTypes = { | 13 | static propTypes = { |
14 | stores: PropTypes.shape({ | 14 | stores: PropTypes.shape({ |
15 | user: PropTypes.instanceOf(UserStore).isRequired, | 15 | user: PropTypes.instanceOf(UserStore).isRequired, |
16 | todos: PropTypes.instanceOf(TodoStore).isRequired, | ||
17 | }).isRequired, | ||
18 | actions: PropTypes.shape({ | ||
19 | todos: PropTypes.shape({ | ||
20 | resize: PropTypes.func.isRequired, | ||
21 | handleIPCMessage: PropTypes.func.isRequired, | ||
22 | }), | ||
23 | }).isRequired, | 16 | }).isRequired, |
24 | }; | 17 | }; |
25 | 18 | ||
26 | render() { | 19 | render() { |
27 | const { stores, actions } = this.props; | 20 | const { stores } = this.props; |
28 | 21 | ||
29 | if (!stores.todos || !stores.todos.isFeatureActive) { | 22 | if (!stores.todos || !stores.todos.isFeatureActive) { |
30 | return null; | 23 | return null; |
@@ -34,11 +27,11 @@ class TodosScreen extends Component { | |||
34 | <ErrorBoundary> | 27 | <ErrorBoundary> |
35 | <TodosWebview | 28 | <TodosWebview |
36 | authToken={stores.user.authToken} | 29 | authToken={stores.user.authToken} |
37 | handleClientMessage={actions.todos.handleClientMessage} | 30 | handleClientMessage={todoActions.handleClientMessage} |
38 | setTodosWebview={webview => actions.todos.setTodosWebview({ webview })} | 31 | setTodosWebview={webview => todoActions.setTodosWebview({ webview })} |
39 | width={stores.todos.width} | 32 | width={todosStore.width} |
40 | minWidth={TODOS_MIN_WIDTH} | 33 | minWidth={TODOS_MIN_WIDTH} |
41 | resize={width => actions.todos.resize({ width })} | 34 | resize={width => todoActions.resize({ width })} |
42 | /> | 35 | /> |
43 | </ErrorBoundary> | 36 | </ErrorBoundary> |
44 | ); | 37 | ); |