1import React from 'react';
3import useRouter from 'lib/useRouter';
5import { ActivateFlowProvider } from './Activate/ActivateFlow';
6import useActivateFlowState from './Activate/useActivateFlowState';
7import ActivateCode from './Activate/ActivateCode';
8import ActivateDisclaimer from './Activate/ActivateDisclaimer';
9import { LocalRouterProvider } from 'lib/LocalRouter';
10import ActivatePassport from './Activate/ActivatePassport';
14 DISCLAIMER: 'DISCLAIMER',
19 [NAMES.CODE]: ActivateCode,
20 [NAMES.DISCLAIMER]: ActivateDisclaimer,
21 [NAMES.PASSPORT]: ActivatePassport,
24export default function Activate() {
25 const state = useActivateFlowState();
26 const { Route, ...router } = useRouter({
29 initialRoutes: [{ key: NAMES.CODE }],
33 <LocalRouterProvider value={router}>
34 <ActivateFlowProvider value={state}>
36 </ActivateFlowProvider>
37 </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