Skip to content

Commit

Permalink
chore: hide MM header in bridge page
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Oct 10, 2024
1 parent 5a4fc53 commit 7386398
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/pages/create-account/connect-hardware/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jest.mock('../../../selectors', () => ({
},
}));

jest.mock('../../../ducks/bridge/selectors', () => ({
getAllBridgeableNetworks: () => [],
}));

const MOCK_RECENT_PAGE = '/home';
jest.mock('../../../ducks/history/history', () => ({
getMostRecentOverviewPage: jest
Expand Down
11 changes: 11 additions & 0 deletions ui/pages/routes/routes.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,17 @@ export default class Routes extends Component {
hideAppHeader() {
const { location } = this.props;

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

if (isCrossChainSwapsPage) {
return true;
}

const isNotificationsPage = Boolean(
matchPath(location.pathname, {
path: `${NOTIFICATIONS_ROUTE}`,
Expand Down

0 comments on commit 7386398

Please sign in to comment.