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