on master help sign in
Get rid of promptText on SentTransaction
commit5cfbbff63246eded2720742d25c644551f0584cf authorFang <git@fang.io> dateThu 9 May 2019, 21:14 (7 years ago) parentf608c65
3 files changed−19
src/bridge/components/StatelessTransaction.js−3 src/bridge/views/InvitesSend.js−3 src/bridge/views/SentTransaction.js−13
src/bridge/components/StatelessTransaction.js−3
@@ -240,9 +240,6 @@ class StatelessTransaction extends React.Component {
240240 props.setNetworkSeedCache(props.networkSeed);
241241 routeData.promptKeyfile = true;
242242 }
243− if (props.promptText) {
244− routeData.promptText = props.promptText;
245− }
246243 props.pushRoute(ROUTE_NAMES.SENT_TRANSACTION, routeData);
247244 })
248245 .catch(err => {
src/bridge/views/InvitesSend.js−3
@@ -56,8 +56,6 @@ class InvitesSend extends React.Component {
5656 this.handleEmailInput = this.handleEmailInput.bind(this);
5757 this.txnConfirmation = this.txnConfirmation.bind(this);
5858 this.createUnsignedTxn = this.createUnsignedTxn.bind(this);
59−
60− this.promptText = 'The email will be sent on first confirmation. Please wait.';
6159 }
6260
6361 componentDidMount() {
@@ -221,7 +219,6 @@ class InvitesSend extends React.Component {
221219 popRoute={this.props.popRoute}
222220 pushRoute={this.props.pushRoute}
223221 // Other
224− promptText={this.promptText}
225222 canGenerate={this.canGenerate()}
226223 createUnsignedTxn={this.createUnsignedTxn}
227224 ref={this.statelessRef} />
src/bridge/views/SentTransaction.js−13
@@ -126,7 +126,6 @@ const SentTransaction = (props) => {
126126 const { setPointCursor, pointCursor } = props
127127
128128 const promptKeyfile = props.routeData && props.routeData.promptKeyfile
129− const promptText = props.routeData && props.routeData.promptText
130129
131130 const w3 = web3.matchWith({
132131 Nothing: _ => { throw BRIDGE_ERROR.MISSING_WEB3 },
@@ -148,17 +147,6 @@ const SentTransaction = (props) => {
148147 />
149148 })
150149
151− let text;
152− if (promptText) {
153− text = (
154− <Row>
155− <Col>
156− <p>{promptText}</p>
157− </Col>
158− </Row>
159− )
160− }
161−
162150 const ok =
163151 <Row>
164152 <Col>
@@ -199,7 +187,6 @@ const SentTransaction = (props) => {
199187 return (
200188 <div>
201189 { body }
202− { text }
203190 { ok }
204191 { keyfile }
205192 </div>