Updated ESLINT and fixing linting issues
This commit is contained in:
@@ -158,18 +158,18 @@ export default class Application extends Component {
|
||||
{ Transaction.renderHeader() }
|
||||
</thead>
|
||||
<tbody>
|
||||
{
|
||||
transactions.map((tx, idx) => (
|
||||
<Transaction
|
||||
key={ tx.transaction.hash }
|
||||
idx={ idx + 1 }
|
||||
isLocal={ tx.isLocal }
|
||||
transaction={ tx.transaction }
|
||||
stats={ tx.stats }
|
||||
blockNumber={ blockNumber }
|
||||
/>
|
||||
))
|
||||
}
|
||||
{
|
||||
transactions.map((tx, idx) => (
|
||||
<Transaction
|
||||
key={ tx.transaction.hash }
|
||||
idx={ idx + 1 }
|
||||
isLocal={ tx.isLocal }
|
||||
transaction={ tx.transaction }
|
||||
stats={ tx.stats }
|
||||
blockNumber={ blockNumber }
|
||||
/>
|
||||
))
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
);
|
||||
|
||||
@@ -83,7 +83,7 @@ class BaseTransaction extends Component {
|
||||
|
||||
return (
|
||||
<span className={ styles.nowrap }>
|
||||
{ noOfPropagations } ({ noOfPeers } peers)
|
||||
{ noOfPropagations } ({ noOfPeers } peers)
|
||||
</span>
|
||||
);
|
||||
}
|
||||
@@ -110,7 +110,7 @@ export class Transaction extends BaseTransaction {
|
||||
static renderHeader () {
|
||||
return (
|
||||
<tr className={ styles.header }>
|
||||
<th></th>
|
||||
<th />
|
||||
<th>
|
||||
Transaction
|
||||
</th>
|
||||
@@ -129,8 +129,7 @@ export class Transaction extends BaseTransaction {
|
||||
<th>
|
||||
# Propagated
|
||||
</th>
|
||||
<th>
|
||||
</th>
|
||||
<th />
|
||||
</tr>
|
||||
);
|
||||
}
|
||||
@@ -201,7 +200,7 @@ export class LocalTransaction extends BaseTransaction {
|
||||
static renderHeader () {
|
||||
return (
|
||||
<tr className={ styles.header }>
|
||||
<th></th>
|
||||
<th />
|
||||
<th>
|
||||
Transaction
|
||||
</th>
|
||||
|
||||
@@ -73,7 +73,7 @@ export default class Import extends Component {
|
||||
Provide the ABI (Contract Interface) in the space provided below. Only non-constant functions (names & types) will be imported, while constant functions and existing signatures will be ignored.
|
||||
</div>
|
||||
<div className={ styles.info }>
|
||||
<textarea rows='8' className={ styles.error } onChange={ this.onAbiEdit }></textarea>
|
||||
<textarea rows='8' className={ styles.error } onChange={ this.onAbiEdit } />
|
||||
<div className={ styles.error }>
|
||||
{ abiError }
|
||||
</div>
|
||||
|
||||
@@ -30,9 +30,9 @@ import './style.css';
|
||||
|
||||
ReactDOM.render(
|
||||
(
|
||||
<Provider store={ store }>
|
||||
<Container />
|
||||
</Provider>
|
||||
<Provider store={ store }>
|
||||
<Container />
|
||||
</Provider>
|
||||
),
|
||||
document.querySelector('#container')
|
||||
);
|
||||
|
||||
@@ -147,7 +147,7 @@ export const loadToken = (index) => (dispatch, getState) => {
|
||||
dispatch(setTokenData(index, null));
|
||||
dispatch(setTokenLoading(index, false));
|
||||
|
||||
if (!e instanceof TypeError) {
|
||||
if (!(e instanceof TypeError)) {
|
||||
console.error(`loadToken #${index} error`, e);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user