diff options
Diffstat (limited to 'src/features/todos/containers')
-rw-r--r-- | src/features/todos/containers/TodosScreen.js | 6 |
1 files changed, 2 insertions, 4 deletions
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, |