feature: add receive view container
This commit is contained in:
parent
74c8853b5e
commit
65394dc9e6
|
@ -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);
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue