Merge pull request #57 from Permissionless-Software-Foundation/ct-unstable

fix(component extension): Adding complexity back in
This commit is contained in:
Chris Troutner
2020-08-12 10:53:17 -07:00
committed by GitHub
+31 -36
View File
@@ -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