diff --git a/common/containers/Tabs/WalletDecrypt/index.jsx b/common/containers/Tabs/WalletDecrypt/index.jsx index b7f28f96..ddd5d44a 100644 --- a/common/containers/Tabs/WalletDecrypt/index.jsx +++ b/common/containers/Tabs/WalletDecrypt/index.jsx @@ -1,9 +1,63 @@ import React, {Component} from 'react'; import translate from 'translations'; -import KeystoreDecrypt from './KeystoreDecrypt'; - +/*import KeystoreDecrypt from './KeystoreDecrypt'; +import PrivateKeyDecrypt from './PrivateKeyDecrypt'; +import MnemonicDecrypt from './MnemonicDecrypt'; +import LedgerNanoSDecrypt from './LedgerNanoSDecrypt'; +import TrezorDecrypt from './TrezorDecrypt'; +import ViewOnlyDecrypt from './ViewOnlyDecrypt';*/ export default class WalletDecrypt extends Component { + buildDecryptionChoices() { + const decryptionChoices = [ + { + name: 'keystore-file', + lid: 'x_Keystore2', + // component: KeystoreDecrypt + }, + { + name: 'private-key', + lid: 'x_PrivKey2', + // component: PrivateKeyDecrypt + }, + { + name: 'mnemonic-phrase', + lid: 'x_Mnemonic', + // component: MnemonicDecrypt + }, + { + name: 'ledger-nano-s', + lid: 'x_Ledger', + // component: LedgerNanoSDecrypt + }, + { + name: 'trezor', + lid: 'x_Trezor', + // component: TrezorDecrypt + }, + { + name: 'view-only', + lid: 'View with Address Only', + // component: ViewOnlyDecrypt + } + ]; + + return decryptionChoices.map((decryptionChoice, idx) => { + return ( + + ); + }); + } + render() { return (
@@ -18,93 +72,9 @@ export default class WalletDecrypt extends Component {

{translate('decrypt_Access')}

- - - - - - - -
- + {this.buildDecryptionChoices()} +