Skip to content

Commit

Permalink
fix: hide app header in Bridge page
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Oct 23, 2024
1 parent 112a265 commit 3f91ec0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ui/pages/routes/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
CONFIRMATION_V_NEXT_ROUTE,
CONNECT_ROUTE,
CONNECTIONS,
CROSS_CHAIN_SWAP_ROUTE,
NOTIFICATIONS_ROUTE,
ONBOARDING_ROUTE,
ONBOARDING_UNLOCK_ROUTE,
Expand Down Expand Up @@ -196,6 +197,16 @@ export function hideAppHeader(props) {
return true;
}

const isCrossChainSwapsPage = Boolean(
matchPath(location.pathname, {
path: `${CROSS_CHAIN_SWAP_ROUTE}`,
exact: false,
}),
);
if (isCrossChainSwapsPage) {
return true;
}

const isHandlingAddEthereumChainRequest = Boolean(
matchPath(location.pathname, {
path: CONFIRMATION_V_NEXT_ROUTE,
Expand Down

0 comments on commit 3f91ec0

Please sign in to comment.