2018-01-29 16:58:07 -06:00
|
|
|
import { GenerateTransactionFactory } from './GenerateTransactionFactory';
|
|
|
|
import React from 'react';
|
|
|
|
import translate from 'translations';
|
2018-03-20 14:11:04 +01:00
|
|
|
|
2018-03-22 14:57:18 +03:00
|
|
|
export const GenerateTransaction: React.SFC<{}> = () => {
|
2018-03-20 14:11:04 +01:00
|
|
|
return (
|
2018-03-23 12:41:47 -04:00
|
|
|
<GenerateTransactionFactory
|
|
|
|
withProps={({ disabled, isWeb3Wallet, onClick }) => (
|
2018-03-20 14:11:04 +01:00
|
|
|
<button disabled={disabled} className="btn btn-info btn-block" onClick={onClick}>
|
|
|
|
{isWeb3Wallet ? translate('SEND_generate') : translate('DEP_signtx')}
|
|
|
|
</button>
|
2018-03-23 12:41:47 -04:00
|
|
|
)}
|
|
|
|
/>
|
2018-03-20 14:11:04 +01:00
|
|
|
);
|
|
|
|
};
|