mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-11 18:44:07 +00:00
WA-238 Fix automic onClick calls
This commit is contained in:
parent
8e908bb5fc
commit
efe2905526
@ -27,9 +27,11 @@ type Props = Open & SelectorProps & {
|
|||||||
export const PROCESS_TXS = 'PROCESS TRANSACTION'
|
export const PROCESS_TXS = 'PROCESS TRANSACTION'
|
||||||
|
|
||||||
class GnoTransaction extends React.PureComponent<Props, {}> {
|
class GnoTransaction extends React.PureComponent<Props, {}> {
|
||||||
|
onProccesClick = () => this.props.onProcessTx(this.props.transaction, this.props.confirmed)
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {
|
const {
|
||||||
open, toggle, transaction, confirmed, safeName, onProcessTx,
|
open, toggle, transaction, confirmed, safeName,
|
||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
const txHash = transaction.get('tx')
|
const txHash = transaction.get('tx')
|
||||||
@ -68,7 +70,7 @@ class GnoTransaction extends React.PureComponent<Props, {}> {
|
|||||||
<Button
|
<Button
|
||||||
variant="raised"
|
variant="raised"
|
||||||
color="primary"
|
color="primary"
|
||||||
onClick={onProcessTx(transaction, confirmed)}
|
onClick={this.onProccesClick}
|
||||||
>
|
>
|
||||||
{PROCESS_TXS}
|
{PROCESS_TXS}
|
||||||
</Button>
|
</Button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user