diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-12-04 10:51:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-04 10:51:16 +0100 |
commit | 11c992b04f3cad6badf0ae86da65f490e31dd359 (patch) | |
tree | 749e63f6ba3e9bea48c186b5d8502d328edfd276 /src/features/todos | |
parent | 5.6.4-nightly.24 [skip ci] (diff) | |
download | ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.gz ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.zst ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.zip |
chore: upgrade react-jss to latest (#2302)
Diffstat (limited to 'src/features/todos')
-rw-r--r-- | src/features/todos/components/TodosWebview.js | 7 | ||||
-rw-r--r-- | src/features/todos/containers/TodosScreen.js | 6 | ||||
-rw-r--r-- | src/features/todos/store.js | 4 |
3 files changed, 5 insertions, 12 deletions
diff --git a/src/features/todos/components/TodosWebview.js b/src/features/todos/components/TodosWebview.js index 1d423544b..780864b91 100644 --- a/src/features/todos/components/TodosWebview.js +++ b/src/features/todos/components/TodosWebview.js | |||
@@ -48,8 +48,6 @@ const styles = theme => ({ | |||
48 | }, | 48 | }, |
49 | }); | 49 | }); |
50 | 50 | ||
51 | @injectSheet(styles) | ||
52 | @observer | ||
53 | class TodosWebview extends Component { | 51 | class TodosWebview extends Component { |
54 | static propTypes = { | 52 | static propTypes = { |
55 | classes: PropTypes.object.isRequired, | 53 | classes: PropTypes.object.isRequired, |
@@ -128,7 +126,6 @@ class TodosWebview extends Component { | |||
128 | const { handleClientMessage } = this.props; | 126 | const { handleClientMessage } = this.props; |
129 | if (!this.webview) return; | 127 | if (!this.webview) return; |
130 | this.webview.addEventListener('ipc-message', e => { | 128 | this.webview.addEventListener('ipc-message', e => { |
131 | // console.log(e); | ||
132 | handleClientMessage({ channel: e.channel, message: e.args[0] }); | 129 | handleClientMessage({ channel: e.channel, message: e.args[0] }); |
133 | }); | 130 | }); |
134 | } | 131 | } |
@@ -201,4 +198,6 @@ class TodosWebview extends Component { | |||
201 | } | 198 | } |
202 | } | 199 | } |
203 | 200 | ||
204 | export default TodosWebview; | 201 | export default injectSheet(styles, { injectTheme: true })( |
202 | observer(TodosWebview), | ||
203 | ); | ||
diff --git a/src/features/todos/containers/TodosScreen.js b/src/features/todos/containers/TodosScreen.js index 536810d2d..b97506767 100644 --- a/src/features/todos/containers/TodosScreen.js +++ b/src/features/todos/containers/TodosScreen.js | |||
@@ -10,8 +10,6 @@ import { TODOS_MIN_WIDTH } from '../../../config'; | |||
10 | import { todoActions } from '../actions'; | 10 | import { todoActions } from '../actions'; |
11 | import ServicesStore from '../../../stores/ServicesStore'; | 11 | import ServicesStore from '../../../stores/ServicesStore'; |
12 | 12 | ||
13 | @inject('stores', 'actions') | ||
14 | @observer | ||
15 | class TodosScreen extends Component { | 13 | class TodosScreen extends Component { |
16 | render() { | 14 | render() { |
17 | if ( | 15 | if ( |
@@ -44,9 +42,9 @@ class TodosScreen extends Component { | |||
44 | } | 42 | } |
45 | } | 43 | } |
46 | 44 | ||
47 | export default TodosScreen; | 45 | export default inject('stores', 'actions')(observer(TodosScreen)); |
48 | 46 | ||
49 | TodosScreen.wrappedComponent.propTypes = { | 47 | TodosScreen.propTypes = { |
50 | stores: PropTypes.shape({ | 48 | stores: PropTypes.shape({ |
51 | features: PropTypes.instanceOf(FeaturesStore).isRequired, | 49 | features: PropTypes.instanceOf(FeaturesStore).isRequired, |
52 | services: PropTypes.instanceOf(ServicesStore).isRequired, | 50 | services: PropTypes.instanceOf(ServicesStore).isRequired, |
diff --git a/src/features/todos/store.js b/src/features/todos/store.js index d158ed480..2bf4e8fab 100644 --- a/src/features/todos/store.js +++ b/src/features/todos/store.js | |||
@@ -187,10 +187,6 @@ export default class TodoStore extends FeatureStore { | |||
187 | break; | 187 | break; |
188 | default: | 188 | default: |
189 | debug('Other message received', channel, message); | 189 | debug('Other message received', channel, message); |
190 | console.log( | ||
191 | 'this.stores.services.isTodosServiceAdded', | ||
192 | this.stores.services.isTodosServiceAdded, | ||
193 | ); | ||
194 | if (this.stores.services.isTodosServiceAdded) { | 190 | if (this.stores.services.isTodosServiceAdded) { |
195 | this.actions.service.handleIPCMessage({ | 191 | this.actions.service.handleIPCMessage({ |
196 | serviceId: this.stores.services.isTodosServiceAdded.id, | 192 | serviceId: this.stores.services.isTodosServiceAdded.id, |