1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02: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 React, { useEffect, useState } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { useHistory, withRouter } from 'react-router-dom';
import log from 'loglevel';
import { cloneDeep } from 'lodash';
import * as actions from '../../store/actions';
@ -69,6 +69,7 @@ const ConfirmTxScreen = ({ match }) => {
///: END:ONLY_INCLUDE_IN
const [prevValue, setPrevValues] = useState();
const history = useHistory();
useEffect(() => {
const unconfTxList = txHelper(
@ -174,6 +175,7 @@ const ConfirmTxScreen = ({ match }) => {
return (
<SigComponent
history={history}
txData={txData}
key={txData.id}
identities={identities}