summaryrefslogtreecommitdiff
path: root/app/client/dashboard/dashboard.component.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-26 21:33:26 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-26 21:33:26 +0200
commitbe3b2bd56550b71a2ffb7eb1604c1b8c1d2dd4a2 (patch)
treef8b77bcfd10187328b3fadc0de3e1eb6dfa08f8d /app/client/dashboard/dashboard.component.js
parent3d836c372d7eff1e2b507888f1ff652a30187c54 (diff)
refactor some task stuff
Diffstat (limited to 'app/client/dashboard/dashboard.component.js')
-rw-r--r--app/client/dashboard/dashboard.component.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/client/dashboard/dashboard.component.js b/app/client/dashboard/dashboard.component.js
index 6db42ae..3d3d168 100644
--- a/app/client/dashboard/dashboard.component.js
+++ b/app/client/dashboard/dashboard.component.js
@@ -13,7 +13,7 @@ import TaskList from './tasklist.component'
import FileList from './filelist.component'
import Gallery from './gallery.component'
-import * as liveActions from './actions'
+import * as dashboardActions from './dashboard.actions'
class Dashboard extends Component {
constructor(props){
@@ -59,13 +59,13 @@ class Dashboard extends Component {
}
const mapStateToProps = state => ({
site: state.system.site,
- images: state.system.images,
- tasks: state.system.tasks,
- files: state.system.files
+ images: state.dashboard.images,
+ files: state.dashboard.files,
+ tasks: state.task.tasks,
})
const mapDispatchToProps = (dispatch, ownProps) => ({
- actions: bindActionCreators(liveActions, dispatch)
+ actions: bindActionCreators(dashboardActions, dispatch)
})
export default connect(mapStateToProps, mapDispatchToProps)(Dashboard)