2018-01-29 22:58:07 +00:00
|
|
|
import { GenerateTransactionFactory } from './GenerateTransactionFactory';
|
|
|
|
import React from 'react';
|
|
|
|
import translate from 'translations';
|
2018-03-23 16:41:47 +00:00
|
|
|
import { SigningStatus } from 'components';
|
|
|
|
import './GenerateTransaction.scss';
|
2018-01-29 22:58:07 +00:00
|
|
|
|
|
|
|
export const GenerateTransaction: React.SFC<{}> = () => (
|
2018-03-23 16:41:47 +00:00
|
|
|
<React.Fragment>
|
|
|
|
<GenerateTransactionFactory
|
|
|
|
withProps={({ disabled, isWeb3Wallet, onClick }) => (
|
|
|
|
<React.Fragment>
|
|
|
|
<button
|
|
|
|
disabled={disabled}
|
|
|
|
className="btn btn-info btn-block GenerateTransaction"
|
|
|
|
onClick={onClick}
|
|
|
|
>
|
|
|
|
{isWeb3Wallet ? translate('SEND_GENERATE') : translate('DEP_SIGNTX')}
|
|
|
|
</button>
|
|
|
|
</React.Fragment>
|
|
|
|
)}
|
|
|
|
/>
|
|
|
|
<SigningStatus />
|
|
|
|
</React.Fragment>
|
2018-01-29 22:58:07 +00:00
|
|
|
);
|