1import React, { useCallback } from 'react';
2import cn from 'classnames';
3import * as ob from 'urbit-ob';
4import { Grid, Text, LinkButton } from 'indigo-react';
6import { useLocalRouter } from 'lib/LocalRouter';
8import useWasGreeted from 'lib/useWasGreeted';
9import useCurrentPermissions from 'lib/useCurrentPermissions';
11const TEXT_STYLE = 'f5';
13export default function ActivateDisclaimer({ point }) {
14 const { push, names } = useLocalRouter();
16 const [wasGreeted, setWasGreeted] = useWasGreeted();
17 const { isActiveOwner } = useCurrentPermissions();
19 const pointName = ob.patp(point);
21 const dismiss = useCallback(async () => {
25 const goInvite = useCallback(() => push(names.INVITE), [push, names]);
29 <Grid gap={4} className="mb10">
31 <Text className={cn(TEXT_STYLE, 'block mb4')}>
32 Welcome <code>{pointName}</code>,
35 <Text className={cn(TEXT_STYLE, 'block mb2')}>
36 As of this very moment, you own an Urbit identity – a digital
37 identity that you can keep for the rest of your life. Use the Master
38 Ticket included in your Passport to access your Urbit identity at
39 any time. Right now you can:
48 className={'yellow4'}>
49 <Text className={cn(TEXT_STYLE, 'block mb2')}>
58 href="https://urbit.org/docs/getting-started/">
59 <Text className={cn(TEXT_STYLE, 'block mb2')}>
65 <Text className={cn(TEXT_STYLE, 'block mb4')}>
66 Welcome to Urbit. See you online.
69 <Grid.Item full as={LinkButton} onClick={dismiss}>
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