1import { LocalRouterProvider, useLocalRouter } from 'lib/LocalRouter';
3import useRouter from 'lib/useRouter';
5import MasterKeyDownload from './MasterKeyDownload';
6import MasterKeyTransfer from './MasterKeyTransfer';
7import MasterKeyReveal from './MasterKeyReveal';
8import MasterKeyConfirm from './MasterKeyConfirm';
18 [NAMES.REVEAL]: MasterKeyReveal,
19 [NAMES.DOWNLOAD]: MasterKeyDownload,
20 [NAMES.CONFIRM]: MasterKeyConfirm,
21 [NAMES.TRANSFER]: MasterKeyTransfer,
24export default function ActivateMasterKey() {
25 // pull the reset function out of the 'activate' router
26 const { reset: resetActivateRouter }: any = useLocalRouter();
27 const { Route, ...router }: any = useRouter({
30 initialRoutes: [{ key: NAMES.REVEAL }],
34 <LocalRouterProvider value={router}>
35 <Route resetActivateRouter={resetActivateRouter} />
36 </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