on master help sign in
Get rid of promptText on SentTransaction
5cfbbffFang
src/bridge/components/StatelessTransaction.js−3
@@ -240,9 +240,6 @@ class StatelessTransaction extends React.Component {
240 props.setNetworkSeedCache(props.networkSeed);
240 props.setNetworkSeedCache(props.networkSeed);
241 routeData.promptKeyfile = true;
241 routeData.promptKeyfile = true;
242 }
242 }
243− if (props.promptText) {
244− routeData.promptText = props.promptText;
245− }
246 props.pushRoute(ROUTE_NAMES.SENT_TRANSACTION, routeData);
243 props.pushRoute(ROUTE_NAMES.SENT_TRANSACTION, routeData);
247 })
244 })
248 .catch(err => {
245 .catch(err => {
src/bridge/views/InvitesSend.js−3
@@ -56,8 +56,6 @@ class InvitesSend extends React.Component {
56 this.handleEmailInput = this.handleEmailInput.bind(this);
56 this.handleEmailInput = this.handleEmailInput.bind(this);
57 this.txnConfirmation = this.txnConfirmation.bind(this);
57 this.txnConfirmation = this.txnConfirmation.bind(this);
58 this.createUnsignedTxn = this.createUnsignedTxn.bind(this);
58 this.createUnsignedTxn = this.createUnsignedTxn.bind(this);
59−
60− this.promptText = 'The email will be sent on first confirmation. Please wait.';
61 }
59 }
62
60
63 componentDidMount() {
61 componentDidMount() {
@@ -221,7 +219,6 @@ class InvitesSend extends React.Component {
221 popRoute={this.props.popRoute}
219 popRoute={this.props.popRoute}
222 pushRoute={this.props.pushRoute}
220 pushRoute={this.props.pushRoute}
223 // Other
221 // Other
224− promptText={this.promptText}
225 canGenerate={this.canGenerate()}
222 canGenerate={this.canGenerate()}
226 createUnsignedTxn={this.createUnsignedTxn}
223 createUnsignedTxn={this.createUnsignedTxn}
227 ref={this.statelessRef} />
224 ref={this.statelessRef} />
src/bridge/views/SentTransaction.js−13
@@ -126,7 +126,6 @@ const SentTransaction = (props) => {
126 const { setPointCursor, pointCursor } = props
126 const { setPointCursor, pointCursor } = props
127
127
128 const promptKeyfile = props.routeData && props.routeData.promptKeyfile
128 const promptKeyfile = props.routeData && props.routeData.promptKeyfile
129− const promptText = props.routeData && props.routeData.promptText
130
129
131 const w3 = web3.matchWith({
130 const w3 = web3.matchWith({
132 Nothing: _ => { throw BRIDGE_ERROR.MISSING_WEB3 },
131 Nothing: _ => { throw BRIDGE_ERROR.MISSING_WEB3 },
@@ -148,17 +147,6 @@ const SentTransaction = (props) => {
148 />
147 />
149 })
148 })
150
149
151− let text;
152− if (promptText) {
153− text = (
154− <Row>
155− <Col>
156− <p>{promptText}</p>
157− </Col>
158− </Row>
159− )
160− }
161−
162 const ok =
150 const ok =
163 <Row>
151 <Row>
164 <Col>
152 <Col>
@@ -199,7 +187,6 @@ const SentTransaction = (props) => {
199 return (
187 return (
200 <div>
188 <div>
201 { body }
189 { body }
202− { text }
203 { ok }
190 { ok }
204 { keyfile }
191 { keyfile }
205 </div>
192 </div>