feature: add receive view container

This commit is contained in:
George Lima 2019-01-07 15:06:16 -03:00
parent 74c8853b5e
commit 65394dc9e6
2 changed files with 14 additions and 2 deletions

12
app/containers/receive.js Normal file
View File

@ -0,0 +1,12 @@
// @flow
import { connect } from 'react-redux';
import { ReceiveView } from '../views/receive';
import type { AppState } from '../types/app-state';
const mapStateToProps = ({ walletSummary }: AppState) => ({
addresses: walletSummary.addresses,
});
export const ReceiveContainer = connect(mapStateToProps)(ReceiveView);

View File

@ -9,7 +9,7 @@ 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 { SendContainer } from '../containers/send'; import { SendContainer } from '../containers/send';
import { ReceiveView } from '../views/receive'; import { ReceiveContainer } from '../containers/receive';
import { SettingsView } from '../views/settings'; import { SettingsView } from '../views/settings';
import { NotFoundView } from '../views/not-found'; import { NotFoundView } from '../views/not-found';
import { ConsoleView } from '../views/console'; import { ConsoleView } from '../views/console';
@ -58,7 +58,7 @@ export const RouterComponent = ({ location }: { location: Location }) => (
component={DashboardContainer} component={DashboardContainer}
/> />
<Route path={SEND_ROUTE} component={SendContainer} /> <Route path={SEND_ROUTE} component={SendContainer} />
<Route path={RECEIVE_ROUTE} component={ReceiveView} /> <Route path={RECEIVE_ROUTE} component={ReceiveContainer} />
<Route path={SETTINGS_ROUTE} component={SettingsView} /> <Route path={SETTINGS_ROUTE} component={SettingsView} />
<Route path={CONSOLE_ROUTE} component={ConsoleView} /> <Route path={CONSOLE_ROUTE} component={ConsoleView} />
<Route <Route