diff --git a/common/containers/Tabs/WalletDecrypt/index.jsx b/common/containers/Tabs/WalletDecrypt/index.jsx index ddd5d44a..f229e074 100644 --- a/common/containers/Tabs/WalletDecrypt/index.jsx +++ b/common/containers/Tabs/WalletDecrypt/index.jsx @@ -1,54 +1,65 @@ 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';*/ +import ViewOnlyDecrypt from './ViewOnlyDecrypt'; + +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 + } +]; 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 - } - ]; + constructor(props) { + super(props); + this.state = { + decryptionComponent: null + }; + } + + buildDecryptionChoices() { return decryptionChoices.map((decryptionChoice, idx) => { return ( -