@@ -2,7 +2,7 @@ import React from 'react'
22import Maybe from 'folktale/maybe'
33import * as azimuth from 'azimuth-js'
44import * as ob from 'urbit-ob'
5−import { Row, Col, H1, P, Warning } from '../components/Base'
5+import { Row, Col, H1, P, Warning, CheckboxButton } from '../components/Base'
66
77import StatelessTransaction from '../components/StatelessTransaction'
88import { BRIDGE_ERROR } from '../lib/error'
@@ -33,15 +33,19 @@ class SetKeys extends React.Component {
3333 nondeterministicSeed: false,
3434 point: point,
3535 cryptoSuiteVersion: 1,
36− continuity: false,
36+ discontinuity: false,
3737 isManagementSeed: false,
3838 }
3939
40− this.handleNetworkSeedInput = this.handleNetworkSeedInput.bind(this)
40+ this.toggleDiscontinuity = this.toggleDiscontinuity.bind(this);
4141 // Transaction
4242 this.createUnsignedTxn = this.createUnsignedTxn.bind(this)
4343 }
4444
45+ toggleDiscontinuity() {
46+ this.setState({ discontinuity: !this.state.discontinuity });
47+ }
48+
4549 componentDidMount() {
4650 const { props } = this
4751
@@ -94,10 +98,6 @@ class SetKeys extends React.Component {
9498 })
9599 }
96100
97− handleNetworkSeedInput(networkSeed) {
98− this.setState({ networkSeed })
99− }
100−
101101 createUnsignedTxn() {
102102 const { state, props } = this
103103
@@ -130,7 +130,7 @@ class SetKeys extends React.Component {
130130 pencr,
131131 pauth,
132132 1,
133− false
133+ state.discontinuity
134134 )
135135
136136 return Maybe.Just(txn)
@@ -185,6 +185,15 @@ class SetKeys extends React.Component {
185185 </Warning>
186186 : <div /> }
187187
188+ <CheckboxButton
189+ className='mt-8'
190+ onToggle={ this.toggleDiscontinuity }
191+ state={ state.discontinuity }
192+ label={`I have lost important off-chain data relating to this point
193+ and need to do a hard reset.
194+ (For example, rebooting an Arvo ship.)`}
195+ ></CheckboxButton>
196+
188197 <StatelessTransaction
189198 // Upper scope
190199 web3={props.web3}