import { connect } from 'react-redux';
import {
  fetchNavigation,
  setNavigationVisibility,
  fetchTOS,
  setPhaseVisibility,
  setPhasesVisibility,
  setDocumentState,
  fetchRecordTypes,
  fetchAttributeTypes,
  addAction,
  addRecord,
  addPhase,
  changeOrder,
  importItems,
  closeMessage
} from '../modules/home';
import HomeView from '../components/HomeView';

const mapDispatchToProps = {
  fetchNavigation,
  setNavigationVisibility,
  fetchTOS,
  setPhaseVisibility,
  setPhasesVisibility,
  setDocumentState,
  fetchRecordTypes,
  fetchAttributeTypes,
  addAction,
  addRecord,
  addPhase,
  changeOrder,
  importItems,
  closeMessage
};

const mapStateToProps = (state) => {
  return {
    navigation: state.home.navigation,
    recordTypes: state.home.recordTypes,
    selectedTOS: state.home.selectedTOS.tos,
    phases: state.home.selectedTOS.phases,
    actions: state.home.selectedTOS.actions,
    records: state.home.selectedTOS.records,
    selectedTOSPath: state.home.selectedTOS.path,
    isFetching: state.home.isFetching,
    documentState: state.home.selectedTOS.documentState,
    attributeTypes: state.home.attributeTypes,
    message: state.home.message
  };
};

export default connect(mapStateToProps, mapDispatchToProps)(HomeView);

@@ -716,21 +716,16 @@
 : state.
-home.
 navigati
@@ -792,33 +792,16 @@
 : state.
-home.selectedTOS.
 tos,%0A   
@@ -815,32 +815,19 @@
 : state.
-home.selectedTOS
+tos
 .phases,
@@ -846,32 +846,19 @@
 : state.
-home.selectedTOS
+tos
 .actions
@@ -878,32 +878,19 @@
 : state.
-home.selectedTOS
+tos
 .records
@@ -918,32 +918,19 @@
 : state.
-home.selectedTOS
+tos
 .path,%0A 
@@ -996,24 +996,11 @@
 ate.
-home.selectedTOS
+tos
 .doc

Add correct props to mapStateToProps