Re-Order Decrypt Options to Match V3 (#445)

This commit is contained in:
Daniel Ternyak 2017-11-21 18:32:20 -06:00 committed by GitHub
parent d8c8a49d7d
commit a5fd608f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 35 additions and 35 deletions

View File

@ -25,38 +25,14 @@ import Web3Decrypt from './Web3';
import Help from 'components/ui/Help'; import Help from 'components/ui/Help';
const WALLETS = { const WALLETS = {
'keystore-file': { web3: {
lid: 'x_Keystore2', lid: 'x_MetaMask',
component: KeystoreDecrypt, component: Web3Decrypt,
initialParams: {
file: '',
password: ''
},
unlock: unlockKeystore,
disabled: false,
helpLink:
'https://myetherwallet.github.io/knowledge-base/private-keys-passwords/difference-beween-private-key-and-keystore-file.html'
},
'private-key': {
lid: 'x_PrivKey2',
component: PrivateKeyDecrypt,
initialParams: {
key: '',
password: ''
},
unlock: unlockPrivateKey,
disabled: false,
helpLink:
'https://myetherwallet.github.io/knowledge-base/private-keys-passwords/difference-beween-private-key-and-keystore-file.html'
},
'mnemonic-phrase': {
lid: 'x_Mnemonic',
component: MnemonicDecrypt,
initialParams: {}, initialParams: {},
unlock: unlockMnemonic, unlock: unlockWeb3,
disabled: false, disabled: false,
helpLink: helpLink:
'https://myetherwallet.github.io/knowledge-base/private-keys-passwords/difference-beween-private-key-and-keystore-file.html' 'https://myetherwallet.github.io/knowledge-base/migration/moving-from-private-key-to-metamask.html'
}, },
'ledger-nano-s': { 'ledger-nano-s': {
lid: 'x_Ledger', lid: 'x_Ledger',
@ -75,14 +51,38 @@ const WALLETS = {
disabled: false, disabled: false,
helpLink: 'https://doc.satoshilabs.com/trezor-apps/mew.html' helpLink: 'https://doc.satoshilabs.com/trezor-apps/mew.html'
}, },
web3: { 'keystore-file': {
lid: 'x_MetaMask', lid: 'x_Keystore2',
component: Web3Decrypt, component: KeystoreDecrypt,
initialParams: {}, initialParams: {
unlock: unlockWeb3, file: '',
password: ''
},
unlock: unlockKeystore,
disabled: false, disabled: false,
helpLink: helpLink:
'https://myetherwallet.github.io/knowledge-base/migration/moving-from-private-key-to-metamask.html' 'https://myetherwallet.github.io/knowledge-base/private-keys-passwords/difference-beween-private-key-and-keystore-file.html'
},
'mnemonic-phrase': {
lid: 'x_Mnemonic',
component: MnemonicDecrypt,
initialParams: {},
unlock: unlockMnemonic,
disabled: false,
helpLink:
'https://myetherwallet.github.io/knowledge-base/private-keys-passwords/difference-beween-private-key-and-keystore-file.html'
},
'private-key': {
lid: 'x_PrivKey2',
component: PrivateKeyDecrypt,
initialParams: {
key: '',
password: ''
},
unlock: unlockPrivateKey,
disabled: false,
helpLink:
'https://myetherwallet.github.io/knowledge-base/private-keys-passwords/difference-beween-private-key-and-keystore-file.html'
}, },
'view-only': { 'view-only': {
lid: 'View with Address Only', lid: 'View with Address Only',