fix(component exension): Finally got the Wallet View working

This commit is contained in:
Chris Troutner
2020-08-12 14:04:07 -07:00
parent c196183a7f
commit d4e9fd50d1
3 changed files with 46 additions and 82 deletions
@@ -0,0 +1,36 @@
import React from 'react'
import Wallet from 'gatsby-ipfs-web-wallet/src/components/admin-lte/wallet/index'
// import Info from 'gatsby-ipfs-web-wallet/src/components/admin-lte/wallet/info'
// console.log('Wallet: ', Wallet)
// console.log('Info: ', Info)
// let _this
class Wallet2 extends Wallet {
// class Wallet2 extends React.Component {
constructor (props) {
super(props)
console.log('Loading new example view.')
// _this = this
}
render () {
return (
<>
<Wallet {...this.props} importComponents={this.addCards()} />
</>
)
}
addCards () {
return (
<>
<p>This is the new component!</p>
</>
)
}
}
export default Wallet2