lbry-desktop/ui/js/page/wallet/index.js

18 lines
486 B
JavaScript
Raw Normal View History

2017-06-06 17:19:12 -04:00
import React from "react";
import { connect } from "react-redux";
2017-08-15 17:42:48 -04:00
import { doNavigate } from "actions/app";
2017-06-06 17:19:12 -04:00
import { selectCurrentPage } from "selectors/app";
import { selectBalance } from "selectors/wallet";
import WalletPage from "./view";
2017-04-22 20:17:01 +07:00
2017-06-05 21:21:55 -07:00
const select = state => ({
2017-04-22 20:17:01 +07:00
currentPage: selectCurrentPage(state),
2017-06-06 17:19:12 -04:00
balance: selectBalance(state),
2017-06-05 21:21:55 -07:00
});
2017-04-22 20:17:01 +07:00
2017-08-15 17:42:48 -04:00
const perform = dispatch => ({
navigate: path => dispatch(doNavigate(path)),
});
export default connect(select, perform)(WalletPage);