mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-21 16:52:06 -07:00
fix(component extension): Debugging. Reducing complexity
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user