@@ -2,6 +2,7 @@ import React from 'react'
2import { Row, Col, H1, H3, P, Warning, Anchor } from '../components/Base'
2import { Row, Col, H1, H3, P, Warning, Anchor } from '../components/Base'
3import { Button } from '../components/Base'
3import { Button } from '../components/Base'
5+import { ROUTE_NAMES } from '../lib/router'
5import { BRIDGE_ERROR, renderTxnError } from '../lib/error'
6import { BRIDGE_ERROR, renderTxnError } from '../lib/error'
6import { NETWORK_NAMES } from '../lib/network'
7import { NETWORK_NAMES } from '../lib/network'
@@ -75,9 +76,11 @@ const Failure = (props) =>
77const SentTransaction = (props) => {
78const SentTransaction = (props) => {
78− const { web3, txnHashCursor, networkType, popRoute } = props
79+ const { web3, txnHashCursor, networkType, popRoute, pushRoute } = props
79 const { setPointCursor, pointCursor } = props
80 const { setPointCursor, pointCursor } = props
82+ const promptKeyfile = props.routeData && props.routeData.promptKeyfile
81 const w3 = web3.matchWith({
84 const w3 = web3.matchWith({
82 Nothing: _ => { throw BRIDGE_ERROR.MISSING_WEB3 },
85 Nothing: _ => { throw BRIDGE_ERROR.MISSING_WEB3 },
83 Just: res => res.value
86 Just: res => res.value
@@ -113,10 +116,32 @@ const SentTransaction = (props) => {
121+ if (promptKeyfile) {
130+ pushRoute(ROUTE_NAMES.GEN_KEYFILE)
133+ { 'Download Keyfile →' }