lbry-desktop/ui/js/page/publish/index.js
Alex Liebowitz 342afc6873 Fetch claim list on Publish page
Before, it would only receive the list of published claims if it had
already been fetched from previously viewing the My Files page
2017-06-09 06:58:20 -04:00

18 lines
573 B
JavaScript

import React from "react";
import { connect } from "react-redux";
import { doNavigate, doHistoryBack } from "actions/app";
import { selectMyClaims } from "selectors/claims";
import { doFetchClaimListMine } from "actions/content";
import PublishPage from "./view";
const select = state => ({
myClaims: selectMyClaims(state),
});
const perform = dispatch => ({
back: () => dispatch(doHistoryBack()),
navigate: path => dispatch(doNavigate(path)),
fetchClaimListMine: () => dispatch(doFetchClaimListMine()),
});
export default connect(select, perform)(PublishPage);