1import React, { useCallback, useMemo } from 'react';
2import cn from 'classnames';
3import { Grid, H3, B, Text, CheckboxInput } from 'indigo-react';
5import useHasDisclaimed from 'lib/useHasDisclaimed';
6import { useLocalRouter } from 'lib/LocalRouter';
8import View from 'components/View';
9import BridgeForm from 'form/BridgeForm';
10import SubmitButton from 'form/SubmitButton';
11import { composeValidator, buildCheckboxValidator } from 'form/validators';
19export default function ActivateDisclaimer() {
20 const { pop, popAndPush, data } = useLocalRouter();
21 const [, setHasDisclaimed] = useHasDisclaimed();
23 const validate = useMemo(
24 () => composeValidator({ checkbox: buildCheckboxValidator(true) }),
28 const initialValues = useMemo(() => ({ checkbox: false }), []);
30 const goNext = useCallback(async () => {
31 setHasDisclaimed(true);
33 popAndPush(data.next);
37 }, [data, pop, popAndPush, setHasDisclaimed]);
41 <Grid gap={2} className="mt8 mb10">
45 style={{ ...textProps, fontSize: '16px', fontWeight: 'bold' }}>
50 <Text as="p" style={textProps}>
51 Welcome to Bridge. Please read this information. Your Urbit ID is
52 considered a digital asset. You must secure it. If you do not pay
53 attention to these warnings, your digital assets could be stolen or
57 <Text as="p" style={textProps}>
58 <strong>You own and control your assets. We do not.</strong> If you
59 send your assets to another address, we cannot get them back for
63 <Text as="p" style={textProps}>
64 Please understand that nobody can:
67 <Text as={'ol'} style={{ paddingLeft: '1em' }}>
68 <Text as="li" style={textProps}>
69 Access your assets for you;
71 <Text as="li" style={textProps}>
72 Recover, reset, or modify ANY of your information;
74 <Text as="li" style={textProps}>
75 Reverse, cancel, or refund transactions;
77 <Text as="li" style={textProps}>
78 Hold, back-up, or access your keys
82 <Text as="p" style={{ ...textProps, fontWeight: 'bold' }}>
83 You are responsible for keeping your information safe. This
87 <Text as={'ol'} style={{ paddingLeft: '1em' }}>
88 <Text as="li" style={textProps}>
89 Private Keys/Mnemonic Phrases and passwords;
91 <Text as="li" style={textProps}>
94 <Text as="li" style={textProps}>
95 Hardware wallet PINs;{' '}
97 <Text as="li" style={textProps}>
98 Downloading this software from a reliable site, and ensuring it
99 has not been tampered with
103 <Text as="p" style={{ ...textProps, fontWeight: 'bold' }}>
107 <Text as="p" style={textProps}>
108 This software is provided “as is” without warranties of any kind and
109 our liability to you in connection with the same is limited;
112 <Text as="p" style={textProps}>
113 We have no liability for any security problems or incidents that you
114 may experience, including any loss or theft of your keys or any
115 problems that may arise in connection with your wallet.
121 initialValues={initialValues}>
122 {({ handleSubmit }) => (
128 label="I acknowledge and understand these rights"
135 handleSubmit={handleSubmit}>
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