diff --git a/src/demo-component/index.js b/src/demo-component/index.js index 0011b52..e47d359 100644 --- a/src/demo-component/index.js +++ b/src/demo-component/index.js @@ -8,9 +8,37 @@ import React from 'react' import { Row, Col, Content, Box, Button } from 'adminlte-2-react' +import { getWalletInfo } from 'gatsby-ipfs-web-wallet/src/components/localWallet' +const BchWallet = + typeof window !== 'undefined' + ? window.SlpWallet + : null + +let _this class DemoComponent extends React.Component { + constructor (props) { + super(props) + _this = this + this.state = { + unconfirmedBalance: 0, + confirmedBalance: 0, + totalBalance: 0, + inFetch: false, + bchWallet: '', + isChecked: '' + + } + } + render () { + const { + unconfirmedBalance, + confirmedBalance, + totalBalance, + inFetch, + isChecked + } = _this.state return ( } + loaded={!inFetch} + footer={ +