feature: send view container
This commit is contained in:
parent
020b12df7d
commit
d306a2e37e
|
@ -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);
|
|
@ -8,7 +8,7 @@ import { ScrollTopComponent } from './scroll-top';
|
||||||
import { SidebarContainer } from '../containers/sidebar';
|
import { SidebarContainer } from '../containers/sidebar';
|
||||||
import { DashboardContainer } from '../containers/dashboard';
|
import { DashboardContainer } from '../containers/dashboard';
|
||||||
import { TransactionsContainer } from '../containers/transactions';
|
import { TransactionsContainer } from '../containers/transactions';
|
||||||
import { SendView } from '../views/send';
|
import { SendContainer } from '../containers/send';
|
||||||
import { ReceiveView } from '../views/receive';
|
import { ReceiveView } from '../views/receive';
|
||||||
import { SettingsView } from '../views/settings';
|
import { SettingsView } from '../views/settings';
|
||||||
import { NotFoundView } from '../views/not-found';
|
import { NotFoundView } from '../views/not-found';
|
||||||
|
@ -57,7 +57,7 @@ export const RouterComponent = ({ location }: { location: Location }) => (
|
||||||
path={DASHBOARD_ROUTE}
|
path={DASHBOARD_ROUTE}
|
||||||
component={DashboardContainer}
|
component={DashboardContainer}
|
||||||
/>
|
/>
|
||||||
<Route path={SEND_ROUTE} component={SendView} />
|
<Route path={SEND_ROUTE} component={SendContainer} />
|
||||||
<Route path={RECEIVE_ROUTE} component={ReceiveView} />
|
<Route path={RECEIVE_ROUTE} component={ReceiveView} />
|
||||||
<Route path={SETTINGS_ROUTE} component={SettingsView} />
|
<Route path={SETTINGS_ROUTE} component={SettingsView} />
|
||||||
<Route path={CONSOLE_ROUTE} component={ConsoleView} />
|
<Route path={CONSOLE_ROUTE} component={ConsoleView} />
|
||||||
|
|
Loading…
Reference in New Issue