diff --git a/app/containers/send.js b/app/containers/send.js new file mode 100644 index 0000000..f8b1fe1 --- /dev/null +++ b/app/containers/send.js @@ -0,0 +1,14 @@ +// @flow +import { connect } from 'react-redux'; + +import { SendView } from '../views/send'; + +import type { AppState } from '../types/app-state'; + +const mapStateToProps = ({ walletSummary }: AppState) => ({ + balance: walletSummary.total, + zecPrice: walletSummary.zecPrice, + addresses: walletSummary.addresses, +}); + +export const SendContainer = connect(mapStateToProps)(SendView); diff --git a/app/router/router.js b/app/router/router.js index 0298ea5..11952fe 100644 --- a/app/router/router.js +++ b/app/router/router.js @@ -8,7 +8,7 @@ import { ScrollTopComponent } from './scroll-top'; import { SidebarContainer } from '../containers/sidebar'; import { DashboardContainer } from '../containers/dashboard'; import { TransactionsContainer } from '../containers/transactions'; -import { SendView } from '../views/send'; +import { SendContainer } from '../containers/send'; import { ReceiveView } from '../views/receive'; import { SettingsView } from '../views/settings'; import { NotFoundView } from '../views/not-found'; @@ -57,7 +57,7 @@ export const RouterComponent = ({ location }: { location: Location }) => ( path={DASHBOARD_ROUTE} component={DashboardContainer} /> - +