1import React from 'react';
2import { Input, AccessoryIcon } from 'indigo-react';
4import View from 'components/View';
5import { useTicketInput } from 'components/Inputs';
6import { ForwardButton } from 'components/Buttons';
8import { useLocalRouter } from 'lib/LocalRouter';
10export default function Verify({ STEP_NAMES, newWallet }) {
11 const { push } = useLocalRouter();
13 const ticketInput = useTicketInput({
15 label: 'New master ticket',
17 const ticket = ticketInput.data;
20 push(STEP_NAMES.RETICKET);
23 const matches = newWallet.value.wallet.ticket === ticket;
25 const displayTicketStatus = matches ? (
26 <AccessoryIcon.Success />
28 <AccessoryIcon.Failure />
33 Prove that you downloaded the new secrets!
34 <Input {...ticketInput} accessory={displayTicketStatus} />
35 <ForwardButton disabled={!matches} onClick={next}>
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list