Commit 291f6cca authored by tom's avatar tom

fix eslint

parent 691d0076
......@@ -20,7 +20,7 @@ interface ResultComponentProps<T extends SmartContractMethod> {
interface Props<T extends SmartContractMethod> {
data: T;
onSubmit: (data: T, args: Array<string | Array<unknown>>) => Promise<ContractMethodCallResult<T>>;
ResultComponent: (props: ResultComponentProps<T>) => JSX.Element | null;
resultComponent: (props: ResultComponentProps<T>) => JSX.Element | null;
isWrite?: boolean;
}
......@@ -61,7 +61,7 @@ const parseArrayValue = (value: string) => {
}
};
const ContractMethodCallable = <T extends SmartContractMethod>({ data, onSubmit, ResultComponent, isWrite }: Props<T>) => {
const ContractMethodCallable = <T extends SmartContractMethod>({ data, onSubmit, resultComponent: ResultComponent, isWrite }: Props<T>) => {
const [ result, setResult ] = React.useState<ContractMethodCallResult<T>>();
const [ isLoading, setLoading ] = React.useState(false);
......
......@@ -74,7 +74,7 @@ const ContractRead = ({ addressHash, isProxy, isCustomAbi }: Props) => {
key={ id + '_' + index }
data={ item }
onSubmit={ handleMethodFormSubmit }
ResultComponent={ ContractReadResult }
resultComponent={ ContractReadResult }
/>
);
}, [ handleMethodFormSubmit ]);
......
......@@ -88,7 +88,7 @@ const ContractWrite = ({ addressHash, isProxy, isCustomAbi }: Props) => {
key={ id + '_' + index }
data={ item }
onSubmit={ handleMethodFormSubmit }
ResultComponent={ ContractWriteResult }
resultComponent={ ContractWriteResult }
isWrite
/>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment