Skip to content

Commit

Permalink
fix: remove intercom boot
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffywu committed Apr 22, 2024
1 parent 3f2d981 commit e35d2b5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions apps/web/src/containers/App/AppLayoutRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ import {
metaTagData,
} from '@notional-finance/shared-web';
import { WalletSelector } from '@notional-finance/wallet';
import { useIntercom } from 'react-use-intercom';
import { Box, styled } from '@mui/material';
import { colors } from '@notional-finance/styles';
import { META_TAG_CATEGORIES, RouteType } from '@notional-finance/util';
import { useWalletConnectedNetwork } from '@notional-finance/notionable-hooks';
import { usePageTrack } from '@notional-finance/helpers';
import { useLocation } from 'react-router';
import { FooterPopup } from '@notional-finance/mui';
import { useEffect } from 'react';

const AppLayoutRoute = ({
component: Component,
Expand All @@ -29,19 +27,12 @@ const AppLayoutRoute = ({
}) => {
const location = useLocation();
const selectedNetwork = useWalletConnectedNetwork();
const { boot } = useIntercom();
usePageTrack(routeType, selectedNetwork);

const slicedPath = path
.match(/\/[^/]+/)?.[0]
?.slice(1) as META_TAG_CATEGORIES;

useEffect(() => {
if (!landingLayout) {
boot();
}
}, [landingLayout, boot]);

return landingLayout ? (
<CompatRoute
path={path}
Expand Down

0 comments on commit e35d2b5

Please sign in to comment.