on 729283f help sign in
bridge/src/views/Disclaimer.js
91 lines 3.4 kB history raw
1import React, { useCallback } from 'react';
2import cn from 'classnames';
3import { Grid, H3, B, Text, CheckboxInput } from 'indigo-react';
5import { useCheckboxInput } from 'lib/useInputs';
6import { useHistory } from 'store/history';
7import useHasDisclaimed from 'lib/useHasDisclaimed';
9import View from 'components/View';
10import { ForwardButton } from 'components/Buttons';
11import WarningBox from 'components/WarningBox';
13const TEXT_STYLE = 'f5';
15export default function ActivateDisclaimer() {
16 const { pop } = useHistory();
17 const [, setHasDisclaimed] = useHasDisclaimed();
18 const [understoodInput, { data: isUnderstood }] = useCheckboxInput({
19 name: 'checkbox',
20 label: 'I acknowledge and understand these rights',
21 });
23 const goToPassport = useCallback(() => {
24 setHasDisclaimed(true);
25 pop();
26 }, [pop, setHasDisclaimed]);
28 return (
29 <View>
30 <Grid gap={2} className="mt8 mb10">
31 <Grid.Item as={H3} full>
32 Disclaimer
33 </Grid.Item>
34 <Grid.Item full>
35 <Text className={cn(TEXT_STYLE, 'block mb4')}>
36 Welcome to Bridge. Please read this information. Your assets could
37 be stolen if you do not pay attention to these warnings.
38 </Text>
40 <Text className={cn(TEXT_STYLE, 'block mb4')}>
41 <B>You own and control your assets. We do not.</B> If you send your
42 assets to another address, we can’t get them back for you.
43 </Text>
45 <B className={TEXT_STYLE}>Please understand that nobody can:</B>
46 <Text className={cn(TEXT_STYLE, 'block mb4')}>
47 1. Access your assets for you <br />
48 2. Recover, reset, or modify ANY of your information <br />
49 3. Reverse, cancel, or refund transactions <br />
50 4. Hold, back-up, or access your keys
51 </Text>
53 <B className={TEXT_STYLE}>
54 You’re responsible for keeping your information safe. This includes:
55 </B>
56 <Text className={cn(TEXT_STYLE, 'block mb4')}>
57 1. Private Keys/Mnemonic Phrases and passwords <br />
58 2. JSON files <br />
59 3. Hardware wallet PINs; <br />
60 4. Downloading this software from a reliable site, and ensuring it
61 has not been tampered with. [add something about using the checksum
62 here]
63 </Text>
65 <B className={TEXT_STYLE}>To be clear</B>
66 <Text className={cn(TEXT_STYLE, 'block')}>
67 This software is provided “as is” without warranties of any kind and
68 our liability to you in connection with the same is limited;
69 </Text>
70 <Text className={cn(TEXT_STYLE, 'block')}>
71 We have no liability for any security problems or incidents that you
72 may experience, including any loss or theft of your keys or any
73 problems that may arise in connection with your wallet.
74 </Text>
75 </Grid.Item>
76 <Grid.Item full as={WarningBox}>
77 Warning: Nobody but you can restore or reset your Master Ticket
78 </Grid.Item>
79 <Grid.Item as={CheckboxInput} {...understoodInput} full />
80 <Grid.Item
81 as={ForwardButton}
82 disabled={!isUnderstood}
83 onClick={goToPassport}
84 solid
85 full>
86 Continue
87 </Grid.Item>
88 </Grid>
89 </View>
90 );