diff --git a/src/constants/chains.ts b/src/constants/chains.ts index 1c7d432f15..1c61ac9c58 100644 --- a/src/constants/chains.ts +++ b/src/constants/chains.ts @@ -13,7 +13,12 @@ export enum SupportedChainId { OPTIMISTIC_KOVAN = 69, } -export const L2_CHAIN_IDS = [SupportedChainId.ARBITRUM_ONE, SupportedChainId.OPTIMISM] +export const L2_CHAIN_IDS = [ + SupportedChainId.ARBITRUM_ONE, + SupportedChainId.ARBITRUM_RINKEBY, + SupportedChainId.OPTIMISM, + SupportedChainId.OPTIMISTIC_KOVAN, +] export const L2_INFO: Record = { [SupportedChainId.OPTIMISM]: { diff --git a/src/pages/App.tsx b/src/pages/App.tsx index 962173ae88..d441d71e05 100644 --- a/src/pages/App.tsx +++ b/src/pages/App.tsx @@ -74,36 +74,36 @@ function TopLevelModals() { const Routes = () => { const { chainId } = useActiveWeb3React() - const HIDE_ON_L2 = Boolean(chainId && L2_CHAIN_IDS.includes(chainId)) + const ON_L2 = Boolean(chainId && L2_CHAIN_IDS.includes(chainId)) return ( - {HIDE_ON_L2 && } - {HIDE_ON_L2 && } + {!ON_L2 && } + {!ON_L2 && } - {HIDE_ON_L2 && } - {HIDE_ON_L2 && } + {!ON_L2 && } + {!ON_L2 && } - {HIDE_ON_L2 && ( + {!ON_L2 && ( )} - {HIDE_ON_L2 && } + {!ON_L2 && } - {HIDE_ON_L2 && } - {HIDE_ON_L2 && } + {!ON_L2 && } + {!ON_L2 && }