lbry-desktop/ui/js/page/wallet/index.js
Jeremy Kauffman 622f1aaa37 backup help
2017-08-15 17:42:48 -04:00

17 lines
486 B
JavaScript

import React from "react";
import { connect } from "react-redux";
import { doNavigate } from "actions/app";
import { selectCurrentPage } from "selectors/app";
import { selectBalance } from "selectors/wallet";
import WalletPage from "./view";
const select = state => ({
currentPage: selectCurrentPage(state),
balance: selectBalance(state),
});
const perform = dispatch => ({
navigate: path => dispatch(doNavigate(path)),
});
export default connect(select, perform)(WalletPage);