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 { LocalRouterProvider } from 'lib/LocalRouter';
9import ActivatePassport from './Activate/ActivatePassport';
13 DISCLAIMER: 'DISCLAIMER',
18 [NAMES.CODE]: ActivateCode,
19 [NAMES.PASSPORT]: ActivatePassport,
22export default function Activate() {
23 const state = useActivateFlowState();
24 const { Route, ...router } = useRouter({
27 initialRoutes: [{ key: NAMES.CODE }],
31 <LocalRouterProvider value={router}>
32 <ActivateFlowProvider value={state}>
34 </ActivateFlowProvider>
35 </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