Skip to content

Commit

Permalink
fix: unnecessary hook instance of prompt (#3676)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshanzel authored Oct 15, 2024
1 parent db4e68b commit dda97aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions packages/extension/src/newtab/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { useError } from '@dailydotdev/shared/src/hooks/useError';
import { BootApp } from '@dailydotdev/shared/src/lib/boot';
import { useNotificationContext } from '@dailydotdev/shared/src/contexts/NotificationsContext';
import { useLazyModal } from '@dailydotdev/shared/src/hooks/useLazyModal';
import { usePrompt } from '@dailydotdev/shared/src/hooks/usePrompt';
import { defaultQueryClientConfig } from '@dailydotdev/shared/src/lib/query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import { useWebVitals } from '@dailydotdev/shared/src/hooks/useWebVitals';
Expand Down Expand Up @@ -77,7 +76,6 @@ const getRedirectUri = () => browser.runtime.getURL('index.html');
function InternalApp(): ReactElement {
useError();
useLazyModal();
usePrompt();
useWebVitals();
const { openModal } = useLazyModal();
const { setCurrentPage, currentPage, promptUninstallExtension } =
Expand Down
2 changes: 0 additions & 2 deletions packages/webapp/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import { BootApp } from '@dailydotdev/shared/src/lib/boot';
import { useNotificationContext } from '@dailydotdev/shared/src/contexts/NotificationsContext';
import { getUnreadText } from '@dailydotdev/shared/src/components/notifications/utils';
import { useLazyModal } from '@dailydotdev/shared/src/hooks/useLazyModal';
import { usePrompt } from '@dailydotdev/shared/src/hooks/usePrompt';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import { defaultQueryClientConfig } from '@dailydotdev/shared/src/lib/query';
import { useWebVitals } from '@dailydotdev/shared/src/hooks/useWebVitals';
Expand Down Expand Up @@ -80,7 +79,6 @@ function InternalApp({ Component, pageProps, router }: AppProps): ReactElement {
useWebVitals();
useLogPageView();
const { modal, closeModal } = useLazyModal();
usePrompt();
useConsoleLogo();

useEffect(() => {
Expand Down

0 comments on commit dda97aa

Please sign in to comment.