2017-06-06 23:19:12 +02:00
|
|
|
import React from "react";
|
|
|
|
import { connect } from "react-redux";
|
|
|
|
import { doNavigate, doHistoryBack } from "actions/app";
|
|
|
|
import { selectMyClaims } from "selectors/claims";
|
2017-06-09 12:38:18 +02:00
|
|
|
import { doFetchClaimListMine } from "actions/content";
|
2017-06-06 23:19:12 +02:00
|
|
|
import PublishPage from "./view";
|
2017-05-02 10:21:00 +02:00
|
|
|
|
2017-06-06 06:21:55 +02:00
|
|
|
const select = state => ({
|
2017-06-06 23:19:12 +02:00
|
|
|
myClaims: selectMyClaims(state),
|
2017-06-06 06:21:55 +02:00
|
|
|
});
|
2017-05-02 10:21:00 +02:00
|
|
|
|
2017-06-06 06:21:55 +02:00
|
|
|
const perform = dispatch => ({
|
2017-05-21 18:15:41 +02:00
|
|
|
back: () => dispatch(doHistoryBack()),
|
2017-06-06 23:19:12 +02:00
|
|
|
navigate: path => dispatch(doNavigate(path)),
|
2017-06-09 12:38:18 +02:00
|
|
|
fetchClaimListMine: () => dispatch(doFetchClaimListMine()),
|
2017-06-06 06:21:55 +02:00
|
|
|
});
|
2017-05-02 10:21:00 +02:00
|
|
|
|
2017-06-06 06:21:55 +02:00
|
|
|
export default connect(select, perform)(PublishPage);
|