@@ -92,7 +92,13 @@ const ipc = sinon.createStubInstance(IpcAction);
92
92
const grpc = sinon . createStubInstance ( GrpcAction ) ;
93
93
const info = sinon . createStubInstance ( InfoAction ) ;
94
94
const notify = sinon . createStubInstance ( NotificationAction ) ;
95
- const wallet = new WalletAction ( store , grpc , db , nav , notify ) ;
95
+ const payment = new PaymentAction ( store , grpc , nav , notify ) ;
96
+ sinon . stub ( payment , 'checkType' ) ;
97
+ sinon . stub ( payment , 'payBitcoin' ) ;
98
+ sinon . stub ( payment , 'toggleMax' ) ;
99
+ sinon . stub ( payment , 'payLightning' ) ;
100
+ sinon . stub ( payment , 'initPayBitcoinConfirm' ) ;
101
+ const wallet = new WalletAction ( store , grpc , db , nav , notify , payment ) ;
96
102
const setting = new SettingAction ( store , wallet , db , ipc ) ;
97
103
const autopilot = sinon . createStubInstance ( AtplAction ) ;
98
104
sinon . stub ( wallet , 'update' ) ;
@@ -104,12 +110,6 @@ const transaction = new TransactionAction(store, grpc, nav, notify);
104
110
sinon . stub ( transaction , 'update' ) ;
105
111
const invoice = new InvoiceAction ( store , grpc , nav , notify , Clipboard ) ;
106
112
sinon . stub ( invoice , 'generateUri' ) ;
107
- const payment = new PaymentAction ( store , grpc , nav , notify ) ;
108
- sinon . stub ( payment , 'checkType' ) ;
109
- sinon . stub ( payment , 'payBitcoin' ) ;
110
- sinon . stub ( payment , 'toggleMax' ) ;
111
- sinon . stub ( payment , 'payLightning' ) ;
112
- sinon . stub ( payment , 'initPayBitcoinConfirm' ) ;
113
113
const channel = new ChannelAction ( store , grpc , nav , notify ) ;
114
114
sinon . stub ( channel , 'update' ) ;
115
115
sinon . stub ( channel , 'connectAndOpen' ) ;
@@ -178,8 +178,8 @@ storiesOf('Screens', module)
178
178
. add ( 'Loader - Syncing Chain (Mobile)' , ( ) => (
179
179
< LoaderSyncingMobile store = { store } />
180
180
) )
181
- . add ( 'Wait' , ( ) => < Wait /> )
182
- . add ( 'Wait (Mobile)' , ( ) => < WaitMobile /> )
181
+ . add ( 'Wait' , ( ) => < Wait store = { store } /> )
182
+ . add ( 'Wait (Mobile)' , ( ) => < WaitMobile store = { store } /> )
183
183
. add ( 'Home' , ( ) => (
184
184
< Home
185
185
store = { store }
0 commit comments