2017-05-02 10:21:00 +02:00
|
|
|
import React from 'react'
|
|
|
|
import {
|
|
|
|
connect,
|
|
|
|
} from 'react-redux'
|
|
|
|
import {
|
|
|
|
doNavigate,
|
2017-05-21 18:15:41 +02:00
|
|
|
doHistoryBack,
|
2017-05-02 10:21:00 +02:00
|
|
|
} from 'actions/app'
|
2017-05-19 01:14:26 +02:00
|
|
|
import {
|
|
|
|
selectMyClaims
|
|
|
|
} from 'selectors/claims'
|
2017-05-02 10:21:00 +02:00
|
|
|
import PublishPage from './view'
|
|
|
|
|
|
|
|
const select = (state) => ({
|
2017-05-19 01:14:26 +02:00
|
|
|
myClaims: selectMyClaims(state)
|
2017-05-02 10:21:00 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
2017-05-21 18:15:41 +02:00
|
|
|
back: () => dispatch(doHistoryBack()),
|
2017-05-02 10:21:00 +02:00
|
|
|
navigate: (path) => dispatch(doNavigate(path)),
|
|
|
|
})
|
|
|
|
|
|
|
|
export default connect(select, perform)(PublishPage)
|