1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

Provide missing history property (#19896)

This commit is contained in:
Matthew Walsh 2023-07-07 09:05:58 +01:00 committed by GitHub
parent 8b2d4efd4a
commit 4e63991cb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux'; import { useDispatch, useSelector } from 'react-redux';
import { withRouter } from 'react-router-dom'; import { useHistory, withRouter } from 'react-router-dom';
import log from 'loglevel'; import log from 'loglevel';
import { cloneDeep } from 'lodash'; import { cloneDeep } from 'lodash';
import * as actions from '../../store/actions'; import * as actions from '../../store/actions';
@ -69,6 +69,7 @@ const ConfirmTxScreen = ({ match }) => {
///: END:ONLY_INCLUDE_IN ///: END:ONLY_INCLUDE_IN
const [prevValue, setPrevValues] = useState(); const [prevValue, setPrevValues] = useState();
const history = useHistory();
useEffect(() => { useEffect(() => {
const unconfTxList = txHelper( const unconfTxList = txHelper(
@ -174,6 +175,7 @@ const ConfirmTxScreen = ({ match }) => {
return ( return (
<SigComponent <SigComponent
history={history}
txData={txData} txData={txData}
key={txData.id} key={txData.id}
identities={identities} identities={identities}