1import React from 'react';
3import { useHistory } from 'store/history';
5import useRouter from 'lib/useRouter';
6import { LocalRouterProvider } from 'lib/LocalRouter';
8import View from 'components/View';
9import L2BackHeader from 'components/L2/Headers/L2BackHeader';
11import UrbitIDHome from '../UrbitID/Home';
12import SigilGenerator from '../UrbitID/SigilGenerator';
13import DownloadKeys from '../UrbitID/DownloadKeys';
14import SetProxy from '../UrbitID/SetProxy';
15import ResetKeys from '../UrbitID/ResetKeys';
16import Transfer from '../UrbitID/Transfer';
20 SIGIL_GENERATOR: 'SIGIL_GENERATOR',
21 DOWNLOAD_KEYS: 'DOWNLOAD_KEYS',
22 SET_PROXY: 'SET_PROXY',
23 RESET_KEYS: 'RESET_KEYS',
28 [NAMES.HOME]: UrbitIDHome,
29 [NAMES.SIGIL_GENERATOR]: SigilGenerator,
30 [NAMES.DOWNLOAD_KEYS]: DownloadKeys,
31 [NAMES.RESET_KEYS]: ResetKeys,
32 [NAMES.SET_PROXY]: SetProxy,
33 [NAMES.TRANSFER]: Transfer,
36export default function UrbitID() {
37 const history = useHistory();
39 const { Route, ...router } = useRouter({
42 initialRoutes: [{ key: NAMES.HOME }],
46 router.peek().key === NAMES.HOME ? history.pop() : router.pop();
55 hideBalance={router.peek().key === NAMES.HOME}
60 <LocalRouterProvider value={router}>
62 </LocalRouterProvider>
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