Skip to content

Commit

Permalink
Updating application/reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro committed Mar 4, 2022
1 parent 7b69be3 commit aa7a392
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/state/application/reducer.ts
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down Expand Up @@ -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,
// ------------------------------------------------------------------------------
}

Expand Down

0 comments on commit aa7a392

Please sign in to comment.