1import React, { useState, useCallback } from 'react';
2import { Nothing } from 'folktale/maybe';
4import View from 'components/View';
5import { ForwardButton, DownloadButton } from 'components/Buttons';
7import { useLocalRouter } from 'lib/LocalRouter';
8import { downloadWallet } from 'lib/invite';
10export default function Download({ newWallet }) {
11 const { push, names } = useLocalRouter();
13 const [hasDownloaded, setHasDownloaded] = useState(false);
15 const doDownload = () => {
16 downloadWallet(newWallet.value.paper);
17 setHasDownloaded(true);
20 const next = useCallback(() => push(names.VERIFY), [push, names]);
24 Download the thing, and keep it somewhere safe!
26 disabled={Nothing.hasInstance(newWallet)}
30 <ForwardButton disabled={!hasDownloaded} 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