Cleanup eslint
This commit is contained in:
parent
6ccef75454
commit
714a5fff2c
@ -9,9 +9,12 @@ import './CallDisplay.css';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
export default function Error (props: BaseProps): React$Node {
|
||||
export default function Error ({ className, style }: BaseProps): React$Node {
|
||||
return (
|
||||
<div className='testing--CallDisplay-error'>
|
||||
<div
|
||||
className={['testing--CallDisplay-error', className].join(' ')}
|
||||
style={style}
|
||||
>
|
||||
ERROR: Invalid or unimplemented extrinsic function
|
||||
</div>
|
||||
);
|
||||
|
||||
@ -14,7 +14,7 @@ import extrinsics from './extrinsics';
|
||||
|
||||
type Props = BaseProps & {};
|
||||
|
||||
const onChange = (event, { value }) => {
|
||||
const onChange = (event: SyntheticEvent<*>, { value }): void => {
|
||||
extrinsicName.next(value);
|
||||
};
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ const testOptions = keyring.getPairs().map((pair) => {
|
||||
});
|
||||
|
||||
export default function InputAddress (props: Props): React$Node {
|
||||
const onChange = (event, { value }) => {
|
||||
const onChange = (event: SyntheticEvent<*>, { value }): void => {
|
||||
if (props.subject) {
|
||||
props.subject.next(value);
|
||||
}
|
||||
|
||||
@ -16,7 +16,7 @@ import { senderAddr, senderIndex } from './subjects';
|
||||
type Props = BaseProps & {};
|
||||
|
||||
const SenderNonce = withObservableParams(RxNonce, senderAddr);
|
||||
const onNonceChange = (value) => {
|
||||
const onNonceChange = (value): void => {
|
||||
// flowlint-next-line sketchy-null-mixed:off
|
||||
if (!value || value.length !== 8) {
|
||||
return;
|
||||
|
||||
@ -14,7 +14,7 @@ import { amount } from './subjects';
|
||||
|
||||
type Props = BaseProps & {};
|
||||
|
||||
const onChange = (event, { value }) => {
|
||||
const onChange = (event: SyntheticEvent<*>, { value }): void => {
|
||||
amount.next(
|
||||
new BN(value || 0)
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user