fix(component extension): Debugging. Reducing complexity

This commit is contained in:
Chris Troutner
2020-08-12 09:54:56 -07:00
parent 65722b5133
commit e855e8eef6
+27 -24
View File
@@ -3,10 +3,10 @@
import React from 'react'
// import PropTypes from 'prop-types'
import { Content } from 'adminlte-2-react'
import ImportWallet from './import'
import NewWallet from './create'
import InfoWallets from './info'
import WalletInfo from './wallet-info'
// import ImportWallet from './import'
// import NewWallet from './create'
// import InfoWallets from './info'
// import WalletInfo from './wallet-info'
let _this
class Wallet extends React.Component {
@@ -20,32 +20,35 @@ class Wallet extends React.Component {
return (
<>
<Content>
{_this.props.walletInfo.mnemonic &&(
<WalletInfo walletInfo={_this.props.walletInfo} />
)}
<NewWallet
updateBalance={_this.props.updateBalance}
setWalletInfo={_this.props.setWalletInfo}
setBchWallet={_this.props.setBchWallet}
walletInfo={_this.props.walletInfo}
/>
<ImportWallet
updateBalance={_this.props.updateBalance}
setWalletInfo={_this.props.setWalletInfo}
setBchWallet={_this.props.setBchWallet}
walletInfo={_this.props.walletInfo}
/>
<InfoWallets />
{this.props.importComponents}
<p>Wallet Component</p>
</Content>
</>
)
}
}
// {_this.props.walletInfo.mnemonic &&(
// <WalletInfo walletInfo={_this.props.walletInfo} />
// )}
// <NewWallet
// updateBalance={_this.props.updateBalance}
// setWalletInfo={_this.props.setWalletInfo}
// setBchWallet={_this.props.setBchWallet}
// walletInfo={_this.props.walletInfo}
// />
//
// <ImportWallet
// updateBalance={_this.props.updateBalance}
// setWalletInfo={_this.props.setWalletInfo}
// setBchWallet={_this.props.setBchWallet}
// walletInfo={_this.props.walletInfo}
// />
//
// <InfoWallets />
// {this.props.importComponents}
// Wallet.propTypes = {
// setWalletInfo: PropTypes.func.isRequired,
// walletInfo: PropTypes.object.isRequired,