Files

15 lines
363 B
TypeScript
Raw Permalink Normal View History

2017-12-18 16:23:31 -05:00
import React from 'react';
2017-12-18 16:23:31 -05:00
import { Query } from './Query';
interface Props {
withQuery({ gasLimit }: { gasLimit: string | null }): React.ReactElement<any>;
}
export const GasQuery: React.SFC<Props> = ({ withQuery }) => (
<Query
params={['limit', 'gaslimit']}
2017-12-18 18:29:26 -05:00
withQuery={({ limit, gaslimit }) => withQuery({ gasLimit: limit || gaslimit })}
2017-12-18 16:23:31 -05:00
/>
);