mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-09 10:41:56 +00:00
84bae60c02
* Make generic modal * Allow generic modals to be injected into send button component * Refactor generate transaction, cleanup transaction sagas, simplify signing process * Get passing unit tests * Make previous test more comprehensive * Fix ts errors
21 lines
627 B
TypeScript
21 lines
627 B
TypeScript
import { signTransactionRequested, TSignTransactionRequested } from 'actions/transaction';
|
|
import React, { Component } from 'react';
|
|
import { connect } from 'react-redux';
|
|
|
|
interface DispatchProps {
|
|
signTransactionRequested: TSignTransactionRequested;
|
|
}
|
|
|
|
interface OwnProps {
|
|
isWeb3: boolean;
|
|
withSigner(signer: TSignTransactionRequested): React.ReactElement<any> | null;
|
|
}
|
|
|
|
class Container extends Component<DispatchProps & OwnProps, {}> {
|
|
public render() {
|
|
return this.props.withSigner(this.props.signTransactionRequested);
|
|
}
|
|
}
|
|
|
|
export const WithSigner = connect(null, { signTransactionRequested })(Container);
|