feature(redux): add settings container

This commit is contained in:
George Lima 2019-01-12 15:01:16 -03:00
parent db011dcc22
commit c69f2c7de0
2 changed files with 14 additions and 2 deletions

View File

@ -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);

View File

@ -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}