1import React, { useCallback, useMemo } from 'react';
2import { Grid, Text, CheckboxInput } from 'indigo-react';
4import useHasDisclaimed from 'lib/useHasDisclaimed';
5import { useLocalRouter } from 'lib/LocalRouter';
7import View from 'components/View';
8import BridgeForm from 'form/BridgeForm';
9import SubmitButton from 'form/SubmitButton';
10import { composeValidator, buildCheckboxValidator } from 'form/validators';
18export default function ActivateDisclaimer() {
19 const { pop, popAndPush, data } = useLocalRouter();
20 const [, setHasDisclaimed] = useHasDisclaimed();
22 const validate = useMemo(
23 () => composeValidator({ checkbox: buildCheckboxValidator(true) }),
27 const initialValues = useMemo(() => ({ checkbox: false }), []);
29 const goNext = useCallback(async () => {
30 setHasDisclaimed(true);
32 popAndPush(data.next);
36 }, [data, pop, popAndPush, setHasDisclaimed]);
40 <Grid gap={2} className="mt8 mb10">
44 style={{ ...textProps, fontSize: '16px', fontWeight: 'bold' }}>
49 <Text as="p" style={textProps}>
50 Welcome to Bridge. Please read this information. Your Urbit ID is
51 considered a digital asset. You must secure it. If you do not pay
52 attention to these warnings, your digital assets could be stolen or
56 <Text as="p" style={textProps}>
57 <strong>You own and control your assets. We do not.</strong> If you
58 send your assets to another address, we cannot get them back for
62 <Text as="p" style={textProps}>
63 Please understand that nobody can:
66 <Text as={'ol'} style={{ paddingLeft: '1em' }}>
67 <Text as="li" style={textProps}>
68 Access your assets for you;
70 <Text as="li" style={textProps}>
71 Recover, reset, or modify ANY of your information;
73 <Text as="li" style={textProps}>
74 Reverse, cancel, or refund transactions;
76 <Text as="li" style={textProps}>
77 Hold, back-up, or access your keys
81 <Text as="p" style={{ ...textProps, fontWeight: 'bold' }}>
82 You are responsible for keeping your information safe. This
86 <Text as={'ol'} style={{ paddingLeft: '1em' }}>
87 <Text as="li" style={textProps}>
88 Private Keys/Mnemonic Phrases and passwords;
90 <Text as="li" style={textProps}>
93 <Text as="li" style={textProps}>
94 Hardware wallet PINs;{' '}
96 <Text as="li" style={textProps}>
97 Downloading this software from a reliable site, and ensuring it
98 has not been tampered with
102 <Text as="p" style={{ ...textProps, fontWeight: 'bold' }}>
106 <Text as="p" style={textProps}>
107 This software is provided “as is” without warranties of any kind and
108 our liability to you in connection with the same is limited;
111 <Text as="p" style={textProps}>
112 We have no liability for any security problems or incidents that you
113 may experience, including any loss or theft of your keys or any
114 problems that may arise in connection with your wallet.
120 initialValues={initialValues}>
121 {({ handleSubmit }) => (
127 label="I acknowledge and understand these rights"
134 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