(ESlint) fix styling issues

This commit is contained in:
Roman Storm 2018-01-03 20:51:10 -08:00
parent 8bbfe4a1ea
commit e47c4ec16d
6 changed files with 11 additions and 11 deletions

View File

@ -1,7 +1,7 @@
import React from 'react';
import React from "react";
import { inject, observer } from "mobx-react";
import Select from 'react-select';
import 'react-select/dist/react-select.css';
import Select from "react-select";
import "react-select/dist/react-select.css";
@inject("ballotStore", "contractsStore")
@observer

View File

@ -80,6 +80,6 @@ export default class VotingToChangeKeys {
async getBallotLimit(_votingKey) {
const currentLimit = await this.votingToChangeKeysInstance.methods.getBallotLimitPerValidator().call();
return currentLimit - await this.getValidatorActiveBallots(_votingKey)
return currentLimit - await this.getValidatorActiveBallots(_votingKey);
}
}

View File

@ -72,6 +72,6 @@ export default class VotingToChangeMinThreshold {
async getBallotLimit(_votingKey) {
const currentLimit = await this.votingToChangeMinThresholdInstance.methods.getBallotLimitPerValidator().call();
return currentLimit - await this.getValidatorActiveBallots(_votingKey)
return currentLimit - await this.getValidatorActiveBallots(_votingKey);
}
}

View File

@ -76,6 +76,6 @@ export default class VotingToChangeProxy {
async getBallotLimit(_votingKey) {
const currentLimit = await this.votingToChangeProxyInstance.methods.getBallotLimitPerValidator().call();
return currentLimit - await this.getValidatorActiveBallots(_votingKey)
return currentLimit - await this.getValidatorActiveBallots(_votingKey);
}
}

View File

@ -44,9 +44,9 @@ class AppMainRouter extends Component {
contractsStore.getAllProxyBallots();
await contractsStore.setMiningKey(web3Config);
contractsStore.getValidatorActiveBallots();
contractsStore.getAllValidatorMetadata()
console.log("votingKey", contractsStore.votingKey)
console.log("miningKey", contractsStore.miningKey)
contractsStore.getAllValidatorMetadata();
console.log("votingKey", contractsStore.votingKey);
console.log("miningKey", contractsStore.miningKey);
}).catch((error) => {
commonStore.hideLoading();
swal({

View File

@ -127,12 +127,12 @@ class BallotStore {
this[parent][field] = newVal;
else
this[field] = newVal;
console.log("ballot metadata", field, parent?this[parent][field]:this[field])
console.log("ballot metadata", field, parent?this[parent][field]:this[field]);
}
@action("change ballot metadata")
setMiningKey = (value) => {
this.ballotKeys.miningKey = value;
console.log("ballot mining key", toJS(value))
console.log("ballot mining key", toJS(value));
}
}