mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-29 16:31:33 +00:00
revert wallet changes
This commit is contained in:
parent
f9a1bd99c0
commit
3554d34c53
1 changed files with 4 additions and 24 deletions
|
@ -99,7 +99,7 @@ var SendToAddressSection = React.createClass({
|
||||||
<h4>Results</h4>
|
<h4>Results</h4>
|
||||||
{this.state.results}
|
{this.state.results}
|
||||||
</div>
|
</div>
|
||||||
: ''
|
: ''
|
||||||
}
|
}
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
@ -111,13 +111,12 @@ var WalletPage = React.createClass({
|
||||||
document.title = "My Wallet";
|
document.title = "My Wallet";
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
Below should be refactored so that balance is shared all of wallet page. Or even broader?
|
Below should be refactored so that balance is shared all of wallet page. Or even broader?
|
||||||
What is the proper React pattern for sharing a global state like balance?
|
What is the proper React pattern for sharing a global state like balance?
|
||||||
*/
|
*/
|
||||||
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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue