From aa7a392a59bedf1212d5634228acc814f8eca483 Mon Sep 17 00:00:00 2001 From: Leandro Date: Fri, 4 Mar 2022 14:20:11 -0800 Subject: [PATCH] Updating application/reducer --- src/state/application/reducer.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/state/application/reducer.ts b/src/state/application/reducer.ts index 6695276858..d2356d45b1 100644 --- a/src/state/application/reducer.ts +++ b/src/state/application/reducer.ts @@ -1,21 +1,21 @@ import { createSlice, nanoid } from '@reduxjs/toolkit' import { DEFAULT_TXN_DISMISS_MS } from 'constants/misc' -// import { SupportedChainId } from '../../constants/chains' -// -// export type PopupContent = -// | { -// txn: { -// hash: string -// } -// } -// TODO: check whether this could be useful for us -// | { -// failedSwitchNetwork: SupportedChainId -// } +import { SupportedChainId } from 'constants/chains' + +type BasePopupContent = + // | { + // txn: { + // hash: string + // } + // } + // | { + { + failedSwitchNetwork: SupportedChainId + } // MOD: Modified PopupContent. The mod happened directly in the src file, to avoid redefining the state/hoos/etc -export type PopupContent = TxPopupContent | MetaTxPopupContent +export type PopupContent = TxPopupContent | MetaTxPopupContent | BasePopupContent export type TxPopupContent = { txn: { @@ -45,10 +45,10 @@ export enum ApplicationModal { POOL_OVERVIEW_OPTIONS, NETWORK_SELECTOR, PRIVACY_POLICY, + ARBITRUM_OPTIONS, // ----------------- MOD: CowSwap specific modals -------------------- TRANSACTION_CONFIRMATION, TRANSACTION_ERROR, - ARBITRUM_OPTIONS, // ------------------------------------------------------------------------------ }