mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Redirect a user to the Activity tab after they click on "View in Activity" (#15620)
This commit is contained in:
parent
71b3f01db5
commit
b27672bd0e
@ -51,8 +51,11 @@ import {
|
||||
import { isSwapsDefaultTokenSymbol } from '../../../../shared/modules/swaps.utils';
|
||||
import PulseLoader from '../../../components/ui/pulse-loader';
|
||||
|
||||
import { ASSET_ROUTE, DEFAULT_ROUTE } from '../../../helpers/constants/routes';
|
||||
import { stopPollingForQuotes } from '../../../store/actions';
|
||||
import { DEFAULT_ROUTE } from '../../../helpers/constants/routes';
|
||||
import {
|
||||
stopPollingForQuotes,
|
||||
setDefaultHomeActiveTabName,
|
||||
} from '../../../store/actions';
|
||||
|
||||
import { getRenderableNetworkFeesForQuote } from '../swaps.util';
|
||||
import SwapsFooter from '../swaps-footer';
|
||||
@ -301,7 +304,8 @@ export default function AwaitingSwap({
|
||||
) {
|
||||
history.push(DEFAULT_ROUTE);
|
||||
} else {
|
||||
history.push(`${ASSET_ROUTE}/${destinationTokenInfo?.address}`);
|
||||
await dispatch(setDefaultHomeActiveTabName('Activity'));
|
||||
history.push(DEFAULT_ROUTE);
|
||||
}
|
||||
}}
|
||||
onCancel={async () => await dispatch(navigateBackToBuildQuote(history))}
|
||||
|
Loading…
Reference in New Issue
Block a user