feature(redux): add settings container
This commit is contained in:
parent
db011dcc22
commit
c69f2c7de0
|
@ -0,0 +1,12 @@
|
|||
// @flow
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { SettingsView } from '../views/settings';
|
||||
|
||||
import type { AppState } from '../types/app-state';
|
||||
|
||||
const mapStateToProps = ({ walletSummary }: AppState) => ({
|
||||
addresses: walletSummary.addresses,
|
||||
});
|
||||
|
||||
export const SettingsContainer = connect(mapStateToProps)(SettingsView);
|
|
@ -10,7 +10,7 @@ import { DashboardContainer } from '../containers/dashboard';
|
|||
import { TransactionsContainer } from '../containers/transactions';
|
||||
import { SendContainer } from '../containers/send';
|
||||
import { ReceiveContainer } from '../containers/receive';
|
||||
import { SettingsView } from '../views/settings';
|
||||
import { SettingsContainer } from '../containers/settings';
|
||||
import { NotFoundView } from '../views/not-found';
|
||||
import { ConsoleView } from '../views/console';
|
||||
import { LayoutComponent } from '../components/layout';
|
||||
|
@ -59,7 +59,7 @@ export const RouterComponent = ({ location }: { location: Location }) => (
|
|||
/>
|
||||
<Route path={SEND_ROUTE} component={SendContainer} />
|
||||
<Route path={RECEIVE_ROUTE} component={ReceiveContainer} />
|
||||
<Route path={SETTINGS_ROUTE} component={SettingsView} />
|
||||
<Route path={SETTINGS_ROUTE} component={SettingsContainer} />
|
||||
<Route path={CONSOLE_ROUTE} component={ConsoleView} />
|
||||
<Route
|
||||
path={TRANSACTIONS_ROUTE}
|
||||
|
|
Loading…
Reference in New Issue