aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/eth-store-warning.js
blob: 4cc5da81ce697a8a2f07c40e32a6d6d7805a24de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
const connect = require('react-redux').connect
const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
const actions = require('./actions')

module.exports = connect(mapStateToProps)(EthStoreWarning)

inherits(EthStoreWarning, Component)
function EthStoreWarning () {
  Component.call(this)
}

function mapStateToProps (state) {
  return {
    selectedAccount: state.metamask.selectedAccount,
  }
}

EthStoreWarning.prototype.render = function () {

  return (

    h('.flex-column', {
      key: 'ethWarning',
      style: {
        paddingTop: '25px',
        marginRight: '30px',
        marginLeft: '30px',
        alignItems: 'center',
      },
    }, [
      h('.warning', {
        style: {
          margin: '10px 10px 10px 10px',
        },
      },
        `MetaMask is currently in beta -
        exercise caution while handling
        and storing your ether.
        `),

      h('i.fa.fa-exclamation-triangle.fa-4', {
        style: {
          fontSize: '152px',
          color: '#AEAEAE',
          textAlign: 'center',
        },
      }),

      h('.flex-row', {
        style: {
          marginTop: '25px',
          marginBottom: '10px',
        },
      }, [
        h('input', {
          type: 'checkbox',
          onChange: this.toggleShowWarning.bind(this, event),
        }),
        h('.warning', {
          style: {
            fontSize: '11px',
          },

        }, 'Dont show me this message again'),
      ]),
      h('.flex-row', {
        style: {
          width: '100%',
          justifyContent: 'space-around',
        },
      }, [
        h('button', {
          onClick: this.toAccounts.bind(this),
        },
          'Continue to MetaMask'),
      ]),
    ])
  )
}

EthStoreWarning.prototype.toggleShowWarning = function (event) {
  this.props.dispatch(actions.agreeToEthWarning())
}

EthStoreWarning.prototype.toAccounts = function () {
  this.props.dispatch(actions.showAccountDetail(this.props.account))
}
* Several contacts list bugfixes.Anders Carlsson2000-07-098-38/+75 * Removed unused do_nothing_cb function.Christopher James Lahey2000-07-099-36/+177 * Link the toolbar print button to the print callback.Not Zed2000-07-092-1/+6 * Hitting OK or Cancel at least closes the dialog now.Christopher James Lahey2000-07-092-0/+7 * Set the returned entry to use the ellipsis.Christopher James Lahey2000-07-092-0/+7 * Include e-select-names-factory.h.Christopher James Lahey2000-07-098-8/+86 * Ignore dynamically created source filesJeffrey Stedfast2000-07-092-0/+9 * Added code for initializing the values of the fields in the messageEttore Perazzoli2000-07-082-2/+29 * Wrap the ESelectNames stuff into a Bonobo interface, so that we canEttore Perazzoli2000-07-0813-11/+622 * Added an "editable" argument.Christopher James Lahey2000-07-086-24/+63 * Changed to line mode.Christopher James Lahey2000-07-082-0/+14 * Implemented the get_cards function.Christopher James Lahey2000-07-084-3/+84 * Make the entry widgets we create editable.Christopher James Lahey2000-07-086-12/+64 * Since ELDAPServer->port is a char *, allocate a string with the number 389Christopher James Lahey2000-07-0811-25/+224 * add scope to ELDAPServer, and make port a string.Chris Toshok2000-07-074-20/+73 * Changed "FIXME: Save and Close" to "Save and Close". Removed some toolbarChristopher James Lahey2000-07-068-37/+375 * call e_ldap_storage_add_server call.Chris Toshok2000-07-068-94/+216 * remove hack to read "uri" file from local directory.Chris Toshok2000-07-066-9/+267 * Fixed more compile errors.Christopher James Lahey2000-07-044-3/+11 * Fixed compile error.Christopher James Lahey2000-07-042-2/+4 * Removed e-card-iterator.c, e-card-iterator.h, e-card-list-iterator.c,Christopher James Lahey2000-07-0434-866/+1186 * EvolutionShellClient.Ettore Perazzoli2000-06-302-1/+7 * New select names manager interface (Not complete.)Christopher James Lahey2000-06-293-0/+227 * Calculate height including if clip_height is set to -1.Christopher James Lahey2000-06-2710-11/+94 * remove spew. (pas_backend_ldap_ensure_connected): duh, don't access aChris Toshok2000-06-272-21/+26 * Remove usage of "x" and "y" arguments.Christopher James Lahey2000-06-217-12/+6 * Fix compilation with builddir != srcdir.Ettore Perazzoli2000-06-193-2/+8 * Made the left column of minicards not get any wider than the widestChristopher James Lahey2000-06-177-18/+137 * Build a `libeshell.a' library in `shell/' so that we don't need toEttore Perazzoli2000-06-132-9/+7 * Removed the ETableModel thaw handler. Likewise.Federico Mena Quintero2000-06-136-53/+12 * Fixed the widget reparenting.Christopher James Lahey2000-06-112-2/+8 * Added glade files.Christopher James Lahey2000-06-117