on master help sign in
Rename StatelessTx's setTxnHashCursor prop to onSent
4195098Fang
src/bridge/components/StatelessTransaction.js+1−1
@@ -232,7 +232,7 @@ class StatelessTransaction extends React.Component {
232 props.setTxnConfirmations
232 props.setTxnConfirmations
233 )
233 )
234 .then(txHash => {
234 .then(txHash => {
235− props.setTxnHashCursor(Just(Ok(txHash)));
235+ props.onSent(Just(Ok(txHash)), state.stx.value);
236 props.popRoute();
236 props.popRoute();
237
237
238 let routeData = {};
238 let routeData = {};
src/bridge/views/AcceptTransfer.js+1−1
@@ -125,7 +125,7 @@ class AcceptTransfer extends React.Component {
125 walletType={props.walletType}
125 walletType={props.walletType}
126 walletHdPath={props.walletHdPath}
126 walletHdPath={props.walletHdPath}
127 networkType={props.networkType}
127 networkType={props.networkType}
128− setTxnHashCursor={props.setTxnHashCursor}
128+ onSent={props.setTxnHashCursor}
129 setTxnConfirmations={props.setTxnConfirmations}
129 setTxnConfirmations={props.setTxnConfirmations}
130 popRoute={props.popRoute}
130 popRoute={props.popRoute}
131 pushRoute={props.pushRoute}
131 pushRoute={props.pushRoute}
src/bridge/views/CancelTransfer.js+1−1
@@ -86,7 +86,7 @@ class CancelTransfer extends React.Component {
86 walletType={props.walletType}
86 walletType={props.walletType}
87 walletHdPath={props.walletHdPath}
87 walletHdPath={props.walletHdPath}
88 networkType={props.networkType}
88 networkType={props.networkType}
89− setTxnHashCursor={props.setTxnHashCursor}
89+ onSent={props.setTxnHashCursor}
90 setTxnConfirmations={props.setTxnConfirmations}
90 setTxnConfirmations={props.setTxnConfirmations}
91 popRoute={props.popRoute}
91 popRoute={props.popRoute}
92 pushRoute={props.pushRoute}
92 pushRoute={props.pushRoute}
src/bridge/views/CreateGalaxy.js+1−1
@@ -211,7 +211,7 @@ class CreateGalaxy extends React.Component {
211 walletType={props.walletType}
211 walletType={props.walletType}
212 walletHdPath={props.walletHdPath}
212 walletHdPath={props.walletHdPath}
213 networkType={props.networkType}
213 networkType={props.networkType}
214− setTxnHashCursor={props.setTxnHashCursor}
214+ onSent={props.setTxnHashCursor}
215 setTxnConfirmations={props.setTxnConfirmations}
215 setTxnConfirmations={props.setTxnConfirmations}
216 popRoute={props.popRoute}
216 popRoute={props.popRoute}
217 pushRoute={props.pushRoute}
217 pushRoute={props.pushRoute}
src/bridge/views/InvitesManage.js+1−1
@@ -189,7 +189,7 @@ class InvitesManage extends React.Component {
189 walletType={this.props.walletType}
189 walletType={this.props.walletType}
190 walletHdPath={this.props.walletHdPath}
190 walletHdPath={this.props.walletHdPath}
191 networkType={this.props.networkType}
191 networkType={this.props.networkType}
192− setTxnHashCursor={this.props.setTxnHashCursor}
192+ onSent={this.props.setTxnHashCursor}
193 setTxnConfirmations={this.props.setTxnConfirmations}
193 setTxnConfirmations={this.props.setTxnConfirmations}
194 popRoute={this.props.popRoute}
194 popRoute={this.props.popRoute}
195 pushRoute={this.props.pushRoute}
195 pushRoute={this.props.pushRoute}
src/bridge/views/InvitesSend.js+1−1
@@ -214,8 +214,8 @@ class InvitesSend extends React.Component {
214 walletType={this.props.walletType}
214 walletType={this.props.walletType}
215 walletHdPath={this.props.walletHdPath}
215 walletHdPath={this.props.walletHdPath}
216 networkType={this.props.networkType}
216 networkType={this.props.networkType}
217− setTxnHashCursor={this.props.setTxnHashCursor}
218 setTxnConfirmations={this.txnConfirmation}
217 setTxnConfirmations={this.txnConfirmation}
218+ onSent={this.props.setTxnHashCursor}
219 popRoute={this.props.popRoute}
219 popRoute={this.props.popRoute}
220 pushRoute={this.props.pushRoute}
220 pushRoute={this.props.pushRoute}
221 // Other
221 // Other
src/bridge/views/IssueChild.js+1−1
@@ -302,7 +302,7 @@ class IssueChild extends React.Component {
302 walletType={props.walletType}
302 walletType={props.walletType}
303 walletHdPath={props.walletHdPath}
303 walletHdPath={props.walletHdPath}
304 networkType={props.networkType}
304 networkType={props.networkType}
305− setTxnHashCursor={props.setTxnHashCursor}
305+ onSent={props.setTxnHashCursor}
306 setTxnConfirmations={props.setTxnConfirmations}
306 setTxnConfirmations={props.setTxnConfirmations}
307 popRoute={props.popRoute}
307 popRoute={props.popRoute}
308 pushRoute={props.pushRoute}
308 pushRoute={props.pushRoute}
src/bridge/views/SetKeys.js+1−1
@@ -193,7 +193,7 @@ class SetKeys extends React.Component {
193 walletType={props.walletType}
193 walletType={props.walletType}
194 walletHdPath={props.walletHdPath}
194 walletHdPath={props.walletHdPath}
195 networkType={props.networkType}
195 networkType={props.networkType}
196− setTxnHashCursor={props.setTxnHashCursor}
196+ onSent={props.setTxnHashCursor}
197 setTxnConfirmations={props.setTxnConfirmations}
197 setTxnConfirmations={props.setTxnConfirmations}
198 popRoute={props.popRoute}
198 popRoute={props.popRoute}
199 pushRoute={props.pushRoute}
199 pushRoute={props.pushRoute}
src/bridge/views/SetProxy.js+1−1
@@ -161,7 +161,7 @@ class SetProxy extends React.Component {
161 walletType={props.walletType}
161 walletType={props.walletType}
162 walletHdPath={props.walletHdPath}
162 walletHdPath={props.walletHdPath}
163 networkType={props.networkType}
163 networkType={props.networkType}
164− setTxnHashCursor={props.setTxnHashCursor}
164+ onSent={props.setTxnHashCursor}
165 setTxnConfirmations={props.setTxnConfirmations}
165 setTxnConfirmations={props.setTxnConfirmations}
166 popRoute={props.popRoute}
166 popRoute={props.popRoute}
167 pushRoute={props.pushRoute}
167 pushRoute={props.pushRoute}
src/bridge/views/Transfer.js+1−1
@@ -131,7 +131,7 @@ class Transfer extends React.Component {
131 walletType={props.walletType}
131 walletType={props.walletType}
132 walletHdPath={props.walletHdPath}
132 walletHdPath={props.walletHdPath}
133 networkType={props.networkType}
133 networkType={props.networkType}
134− setTxnHashCursor={props.setTxnHashCursor}
134+ onSent={props.setTxnHashCursor}
135 setTxnConfirmations={props.setTxnConfirmations}
135 setTxnConfirmations={props.setTxnConfirmations}
136 popRoute={props.popRoute}
136 popRoute={props.popRoute}
137 pushRoute={props.pushRoute}
137 pushRoute={props.pushRoute}