mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 02:55:41 +00:00
d279733fd7
* add onlyTransactionParameters prop to SendButtonFactory to only show Transaction Parameters and not the serialized TX. Useful in Broadcast Signed Transaction so that the user is not presented with redundant data. * add and pass onlyTransactionParameters props through SendButton from BroadcastTx * Adjusted spacing of broadcast tx * Move the qr code styles into css.
21 lines
606 B
TypeScript
21 lines
606 B
TypeScript
import React from 'react';
|
|
import { SendButtonFactory } from './SendButtonFactory';
|
|
import translate from 'translations';
|
|
|
|
export const SendButton: React.SFC<{ onlyTransactionParameters?: boolean }> = ({
|
|
onlyTransactionParameters
|
|
}) => (
|
|
<SendButtonFactory
|
|
onlyTransactionParameters={!!onlyTransactionParameters}
|
|
withProps={({ onClick }) => (
|
|
<div className="row form-group">
|
|
<div className="col-xs-12">
|
|
<button className="btn btn-primary btn-block" onClick={onClick}>
|
|
{translate('SEND_trans')}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
)}
|
|
/>
|
|
);
|