diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-09-03 16:33:16 +0200 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-09-03 16:33:16 +0200 |
commit | a22f18094a64ff9359923c4a91ffbf81769d35f3 (patch) | |
tree | 6294b7332fbc29623d13532d48dd52fdd59de677 /src/features/todos/containers/TodosScreen.js | |
parent | Add CTA for pro upgrade (diff) | |
parent | Merge branch 'feature/todos' into develop (diff) | |
download | ferdium-app-a22f18094a64ff9359923c4a91ffbf81769d35f3.tar.gz ferdium-app-a22f18094a64ff9359923c4a91ffbf81769d35f3.tar.zst ferdium-app-a22f18094a64ff9359923c4a91ffbf81769d35f3.zip |
Merge branch 'develop' into feature/new-pricing
Diffstat (limited to 'src/features/todos/containers/TodosScreen.js')
-rw-r--r-- | src/features/todos/containers/TodosScreen.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/features/todos/containers/TodosScreen.js b/src/features/todos/containers/TodosScreen.js new file mode 100644 index 000000000..d071d0677 --- /dev/null +++ b/src/features/todos/containers/TodosScreen.js | |||
@@ -0,0 +1,32 @@ | |||
1 | import React, { Component } from 'react'; | ||
2 | import { observer } from 'mobx-react'; | ||
3 | |||
4 | import TodosWebview from '../components/TodosWebview'; | ||
5 | import ErrorBoundary from '../../../components/util/ErrorBoundary'; | ||
6 | import { TODOS_MIN_WIDTH, todosStore } from '..'; | ||
7 | import { todoActions } from '../actions'; | ||
8 | |||
9 | @observer | ||
10 | class TodosScreen extends Component { | ||
11 | render() { | ||
12 | if (!todosStore || !todosStore.isFeatureActive) { | ||
13 | return null; | ||
14 | } | ||
15 | |||
16 | return ( | ||
17 | <ErrorBoundary> | ||
18 | <TodosWebview | ||
19 | isVisible={todosStore.isTodosPanelVisible} | ||
20 | togglePanel={todoActions.toggleTodosPanel} | ||
21 | handleClientMessage={todoActions.handleClientMessage} | ||
22 | setTodosWebview={webview => todoActions.setTodosWebview({ webview })} | ||
23 | width={todosStore.width} | ||
24 | minWidth={TODOS_MIN_WIDTH} | ||
25 | resize={width => todoActions.resize({ width })} | ||
26 | /> | ||
27 | </ErrorBoundary> | ||
28 | ); | ||
29 | } | ||
30 | } | ||
31 | |||
32 | export default TodosScreen; | ||