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 { TransactionsContainer } from '../containers/transactions';
|
||||
import { SendContainer } from '../containers/send';
|
||||
import { ReceiveView } from '../views/receive';
|
||||
import { ReceiveContainer } from '../containers/receive';
|
||||
import { SettingsView } from '../views/settings';
|
||||
import { NotFoundView } from '../views/not-found';
|
||||
import { ConsoleView } from '../views/console';
|
||||
|
@ -58,7 +58,7 @@ export const RouterComponent = ({ location }: { location: Location }) => (
|
|||
component={DashboardContainer}
|
||||
/>
|
||||
<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={CONSOLE_ROUTE} component={ConsoleView} />
|
||||
<Route
|
||||
|
|
Loading…
Reference in New Issue