@@ -21,6 +21,7 @@ import { BRIDGE_ERROR } from './lib/error';
21import { isDevelopment } from './lib/flags';
21import { isDevelopment } from './lib/flags';
22import { OnlineProvider } from './store/online';
22import { OnlineProvider } from './store/online';
23import { NetworkProvider } from './store/network';
23import { NetworkProvider } from './store/network';
24+import nest from './lib/nest';
25// NB(shrugs): toggle this variable to use the default local state.
26// NB(shrugs): toggle this variable to use the default local state.
26// don't commit changes to this line, but there shouldn't be a problem
27// don't commit changes to this line, but there shouldn't be a problem
@@ -63,6 +64,13 @@ const VariableWidthColumn = withHistory(({ history, children }) => (
67+const AllProviders = nest([
69+ TxnConfirmationsProvider,
66class Bridge extends React.Component {
74class Bridge extends React.Component {
67 constructor(props) {
75 constructor(props) {
68 super(props);
76 super(props);
@@ -221,62 +229,58 @@ class Bridge extends React.Component {
221 : NETWORK_NAMES.MAINNET;
229 : NETWORK_NAMES.MAINNET;
224− <HistoryProvider initialRoutes={kInitialRoutes}>
233+ initialRoutes={kInitialRoutes}
225− <TxnConfirmationsProvider>
227− <NetworkProvider initialNetworkType={initialNetworkType}>
234+ initialNetworkType={initialNetworkType}>
228− <Container>
235+ <Container>
230− <VariableWidthColumn>
237+ <VariableWidthColumn>
232− skipRoute={this.skipRoute}
239+ skipRoute={this.skipRoute}
233− wallet={wallet}
240+ wallet={wallet}
234− pointCursor={pointCursor}
241+ pointCursor={pointCursor}
237− <Row className={'row wrapper'}>
244+ <Row className={'row wrapper'}>
239− setWalletType={
246+ setWalletType={
240− this.setWalletType // wallet
247+ this.setWalletType // wallet
242− setWalletHdPath={this.setWalletHdPath}
249+ setWalletHdPath={this.setWalletHdPath}
243− setWallet={this.setWallet}
250+ setWallet={this.setWallet}
244− walletType={walletType}
251+ walletType={walletType}
245− walletHdPath={walletHdPath}
252+ walletHdPath={walletHdPath}
246− wallet={wallet}
253+ wallet={wallet}
247− urbitWallet={
254+ urbitWallet={
248− urbitWallet // urbit wallet
255+ urbitWallet // urbit wallet
250− setUrbitWallet={this.setUrbitWallet}
257+ setUrbitWallet={this.setUrbitWallet}
251− authMnemonic={authMnemonic}
258+ authMnemonic={authMnemonic}
252− setAuthMnemonic={this.setAuthMnemonic}
259+ setAuthMnemonic={this.setAuthMnemonic}
253− setPointCursor={
260+ setPointCursor={
254− this.setPointCursor // point
261+ this.setPointCursor // point
256− addToPointCache={this.addToPointCache}
263+ addToPointCache={this.addToPointCache}
257− pointCursor={pointCursor}
264+ pointCursor={pointCursor}
258− pointCache={pointCache}
265+ pointCache={pointCache}
259− networkSeedCache={networkSeedCache}
266+ networkSeedCache={networkSeedCache}
260− networkRevisionCache={networkRevisionCache}
267+ networkRevisionCache={networkRevisionCache}
261− setNetworkSeedCache={this.setNetworkSeedCache}
268+ setNetworkSeedCache={this.setNetworkSeedCache}
262− onSent={
269+ onSent={
263− this.setTxnHashCursor // txn
270+ this.setTxnHashCursor // txn
265− setTxnHashCursor={this.setTxnHashCursor}
272+ setTxnHashCursor={this.setTxnHashCursor}
266− txnHashCursor={txnHashCursor}
273+ txnHashCursor={txnHashCursor}
269− <div className={'push'} />
276+ <div className={'push'} />
272− <Footer />
279+ <Footer />
273− </VariableWidthColumn>
280+ </VariableWidthColumn>
275− </Container>
282+ </Container>
276− </NetworkProvider>
283+ </AllProviders>
278− </TxnConfirmationsProvider>