@@ -2,6 +2,7 @@ import React from 'react'
22import { Row, Col, H1, H3, P, Warning, Anchor } from '../components/Base'
33import { Button } from '../components/Base'
44
5+import { ROUTE_NAMES } from '../lib/router'
56import { BRIDGE_ERROR, renderTxnError } from '../lib/error'
67import { NETWORK_NAMES } from '../lib/network'
78
@@ -75,9 +76,11 @@ const Failure = (props) =>
7576 </Row>
7677
7778const SentTransaction = (props) => {
78− const { web3, txnHashCursor, networkType, popRoute } = props
79+ const { web3, txnHashCursor, networkType, popRoute, pushRoute } = props
7980 const { setPointCursor, pointCursor } = props
8081
82+ const promptKeyfile = props.routeData && props.routeData.promptKeyfile
83+
8184 const w3 = web3.matchWith({
8285 Nothing: _ => { throw BRIDGE_ERROR.MISSING_WEB3 },
8386 Just: res => res.value
@@ -113,10 +116,32 @@ const SentTransaction = (props) => {
113116 </Col>
114117 </Row>
115118
119+ let keyfile;
120+
121+ if (promptKeyfile) {
122+ keyfile = (
123+ <Row>
124+ <Col>
125+ <Button
126+ prop-type={'link'}
127+ onClick={
128+ () => {
129+ popRoute()
130+ pushRoute(ROUTE_NAMES.GEN_KEYFILE)
131+ }
132+ }>
133+ { 'Download Keyfile →' }
134+ </Button>
135+ </Col>
136+ </Row>
137+ )
138+ }
139+
116140 return (
117141 <div>
118142 { body }
119143 { ok }
144+ { keyfile }
120145 </div>
121146 )
122147}