revert wallet changes

This commit is contained in:
Jeremy Kauffman 2016-08-21 10:57:11 -04:00
parent f9a1bd99c0
commit 3554d34c53

View file

@ -117,7 +117,6 @@ var WalletPage = React.createClass({
getInitialState: function() { getInitialState: function() {
return { return {
balance: "Checking balance...", balance: "Checking balance...",
txlog: "Loading transactions...",
} }
}, },
componentWillMount: function() { componentWillMount: function() {
@ -126,21 +125,6 @@ var WalletPage = React.createClass({
balance: results, balance: results,
}); });
}); });
console.log('Trying to get transaction history...')
lbry.call('get_transaction_history', {}, (results) => {
console.log('Got transaction history:')
console.log(results)
var out = 'Transaction history loaded.'
if (results.length == 0) {
out = 'No transactions yet.'
} else {
out = JSON.stringify(results)
}
console.log(out)
this.setState({
txlog: out,
})
});
}, },
render: function() { render: function() {
return ( return (
@ -155,10 +139,6 @@ var WalletPage = React.createClass({
<h3>Claim Invite Code</h3> <h3>Claim Invite Code</h3>
<Link href="?claim" label="Claim a LBRY beta invite code" button="alt" /> <Link href="?claim" label="Claim a LBRY beta invite code" button="alt" />
</section> </section>
<section className="card">
<h3>Transaction History</h3>
{this.state.txlog}
</section>
</main> </main>
); );
} }