aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/todos/containers/TodosScreen.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-09-03 16:33:16 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-09-03 16:33:16 +0200
commita22f18094a64ff9359923c4a91ffbf81769d35f3 (patch)
tree6294b7332fbc29623d13532d48dd52fdd59de677 /src/features/todos/containers/TodosScreen.js
parentAdd CTA for pro upgrade (diff)
parentMerge branch 'feature/todos' into develop (diff)
downloadferdium-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.js32
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 @@
1import React, { Component } from 'react';
2import { observer } from 'mobx-react';
3
4import TodosWebview from '../components/TodosWebview';
5import ErrorBoundary from '../../../components/util/ErrorBoundary';
6import { TODOS_MIN_WIDTH, todosStore } from '..';
7import { todoActions } from '../actions';
8
9@observer
10class 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
32export default TodosScreen;