-});
-
-module.exports.PoloniexBalance = PoloniexBalance;
-
-var PoloniexCredentialsForm = React.createClass({
- getInitialState: function() {
- return {'hideMsg': true, 'msg': '', 'editMode': false, 'msgOk': false};
- },
- handleSubmit: function(e) {
- this.props.onCredentialsSubmit();
- this.setState({'editMode': false});
- e.preventDefault();
- },
- handleApiKeyChange: function(event) {
- this.props.onCredentialsChange(event.target.value, this.props.apiSecret);
- },
- handleApiSecretChange: function(event) {
- this.props.onCredentialsChange(this.props.apiKey, event.target.value);
- },
- onEditClick: function() {
- this.setState({'editMode': true});
- },
- render: function() {
- var submitType = (this.state.editMode === true) ? 'submit' : 'hidden';
- var buttonDisplay = (this.state.editMode === true) ? 'none' : 'inline';
- var secretDisplayed = (this.state.editMode === true) ? this.props.apiSecret : 'XXXXXXX';
- var keyDisplayed = (this.state.editMode === true) ? this.props.apiKey : 'XXXXXXX';