1import { useCallback } from 'react';
3import View from 'components/View';
4import ActivateView from './ActivateView';
6import { useLocalRouter } from 'lib/LocalRouter';
7import useImpliedTicket from 'lib/useImpliedTicket';
8import useHasDisclaimed from 'lib/useHasDisclaimed';
10import { FadeablePointPresenter as PointPresenter } from './PointPresenter';
11import { Box, Text } from '@tlon/indigo-react';
12import { FadeableActivateHeader as ActivateHeader } from './ActivateHeader';
13import { FadeableActivateCodeForm as ActivateCodeForm } from './ActivateCodeForm';
14import useFadeIn from './useFadeIn';
16export default function ActivateCode() {
17 const { names, push } = useLocalRouter();
18 const { impliedPatp, impliedTicket } = useImpliedTicket();
19 const [hasDisclaimed] = useHasDisclaimed();
21 const goToMasterKey = useCallback(() => {
23 push(names.DISCLAIMER, { next: names.MASTER_KEY });
25 push(names.MASTER_KEY);
27 }, [hasDisclaimed, names.DISCLAIMER, names.MASTER_KEY, push]);
33 <View centered={true}>
35 header={<ActivateHeader content={'Welcome. This is your Urbit.'} />}
36 footer={<ActivateCodeForm afterSubmit={goToMasterKey} />}>
40 flexDirection={'column'}
43 justifyContent={'center'}>
45 <Text className="mb2">Enter your activation code to continue.</Text>
47 {impliedPatp && <PointPresenter patp={impliedPatp} />}
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