feature: send view container

This commit is contained in:
George Lima 2018-12-20 15:56:45 -03:00
parent 020b12df7d
commit d306a2e37e
2 changed files with 16 additions and 2 deletions

14
app/containers/send.js Normal file
View File

@ -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);

View File

@ -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}
/>
<Route path={SEND_ROUTE} component={SendView} />
<Route path={SEND_ROUTE} component={SendContainer} />
<Route path={RECEIVE_ROUTE} component={ReceiveView} />
<Route path={SETTINGS_ROUTE} component={SettingsView} />
<Route path={CONSOLE_ROUTE} component={ConsoleView} />