diff --git a/src/custom/components/Header/index.tsx b/src/custom/components/Header/index.tsx index bdb92d0862..fc1b3bf402 100644 --- a/src/custom/components/Header/index.tsx +++ b/src/custom/components/Header/index.tsx @@ -45,7 +45,6 @@ import Modal from 'components/Modal' // import ClaimModal from 'components/claim/ClaimModal' import UniBalanceContent from 'components/Header/UniBalanceContent' import CowClaimButton from 'components/CowClaimButton' -import { IS_CLAIMING_ENABLED } from 'pages/Claim/const' export const NETWORK_LABELS: { [chainId in ChainId]?: string } = { [ChainId.RINKEBY]: 'Rinkeby', @@ -276,16 +275,14 @@ export default function Header() { - {IS_CLAIMING_ENABLED && ( - - - - )} + + + {account && userEthBalance && ( diff --git a/src/custom/components/Menu/index.tsx b/src/custom/components/Menu/index.tsx index d0e9bf20e7..0bb3af64db 100644 --- a/src/custom/components/Menu/index.tsx +++ b/src/custom/components/Menu/index.tsx @@ -20,7 +20,6 @@ import { getExplorerAddressLink } from 'utils/explorer' import { useHasOrders } from 'api/gnosisProtocol/hooks' import { useHistory } from 'react-router-dom' import CowClaimButton, { Wrapper as ClaimButtonWrapper } from 'components/CowClaimButton' -import { IS_CLAIMING_ENABLED } from 'pages/Claim/const' import twitterImage from 'assets/cow-swap/twitter.svg' import discordImage from 'assets/cow-swap/discord.svg' @@ -291,14 +290,12 @@ export function Menu({ darkMode, toggleDarkMode, isClaimPage }: MenuProps) { return ( - {IS_CLAIMING_ENABLED && ( - - )} + Swap diff --git a/src/custom/pages/App/index.tsx b/src/custom/pages/App/index.tsx index 6cfa6feaab..8d33dfe53b 100644 --- a/src/custom/pages/App/index.tsx +++ b/src/custom/pages/App/index.tsx @@ -11,7 +11,6 @@ import { version } from '@src/../package.json' import { environmentName } from 'utils/environments' import { useFilterEmptyQueryParams } from 'hooks/useFilterEmptyQueryParams' import RedirectAnySwapAffectedUsers from 'pages/error/AnySwapAffectedUsers/RedirectAnySwapAffectedUsers' -import { IS_CLAIMING_ENABLED } from 'pages/Claim/const' const SENTRY_DSN = process.env.REACT_APP_SENTRY_DSN const SENTRY_TRACES_SAMPLE_RATE = process.env.REACT_APP_SENTRY_TRACES_SAMPLE_RATE @@ -84,7 +83,7 @@ export default function App() { - {IS_CLAIMING_ENABLED && } + diff --git a/src/custom/pages/Claim/const.ts b/src/custom/pages/Claim/const.ts index e228cf7b91..7ce2cf7444 100644 --- a/src/custom/pages/Claim/const.ts +++ b/src/custom/pages/Claim/const.ts @@ -1,4 +1,3 @@ import { isProd, isEns, isBarn } from 'utils/environments' -export const IS_CLAIMING_ENABLED = !isBarn export const IS_TESTING_ENV = !isProd && !isEns && !isBarn