mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-22 17:22:05 -07:00
Merge pull request #57 from Permissionless-Software-Foundation/ct-unstable
fix(component extension): Adding complexity back in
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
/* eslint-disable */
|
||||
|
||||
import React from 'react'
|
||||
// import PropTypes from 'prop-types'
|
||||
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 {
|
||||
@@ -19,42 +19,37 @@ class Wallet extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<Content>
|
||||
<p>Wallet Component</p>
|
||||
{_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}
|
||||
</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 />
|
||||
|
||||
|
||||
|
||||
// Wallet.propTypes = {
|
||||
// setWalletInfo: PropTypes.func.isRequired,
|
||||
// walletInfo: PropTypes.object.isRequired,
|
||||
// updateBalance: PropTypes.func.isRequired,
|
||||
// setBchWallet: PropTypes.func.isRequired
|
||||
// }
|
||||
Wallet.propTypes = {
|
||||
setWalletInfo: PropTypes.func.isRequired,
|
||||
walletInfo: PropTypes.object.isRequired,
|
||||
updateBalance: PropTypes.func.isRequired,
|
||||
setBchWallet: PropTypes.func.isRequired
|
||||
}
|
||||
|
||||
export default Wallet
|
||||
|
||||
Reference in New Issue
Block a user