diff --git a/apps/cowswap-frontend/src/common/constants/common.ts b/apps/cowswap-frontend/src/common/constants/common.ts index b0c57ea57c..4834eb4d7f 100644 --- a/apps/cowswap-frontend/src/common/constants/common.ts +++ b/apps/cowswap-frontend/src/common/constants/common.ts @@ -9,3 +9,5 @@ export const MAX_ORDER_DEADLINE = ms`1y` // https://github.com/cowprotocol/infra // Use a 150K gas as a fallback if there's issue calculating the gas estimation (fixes some issues with some nodes failing to calculate gas costs for SC wallets) export const GAS_LIMIT_DEFAULT = BigNumber.from('150000') + +export const APP_HEADER_ELEMENT_ID = 'cowswap-app-header' diff --git a/apps/cowswap-frontend/src/cow-react/index.tsx b/apps/cowswap-frontend/src/cow-react/index.tsx index 178b000b91..0074fbdef9 100644 --- a/apps/cowswap-frontend/src/cow-react/index.tsx +++ b/apps/cowswap-frontend/src/cow-react/index.tsx @@ -27,6 +27,7 @@ import { Updaters } from 'modules/application/containers/App/Updaters' import { WithLDProvider } from 'modules/application/containers/WithLDProvider' import { useInjectedWidgetParams } from 'modules/injectedWidget' +import { APP_HEADER_ELEMENT_ID } from '../common/constants/common' import { WalletUnsupportedNetworkBanner } from '../common/containers/WalletUnsupportedNetworkBanner' import { BlockNumberProvider } from '../common/hooks/useBlockNumber' @@ -85,7 +86,7 @@ function Web3ProviderInstance({ children }: { children: ReactNode }) { function Toasts() { const { disableToastMessages = false } = useInjectedWidgetParams() - return