Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
isstuev committed Oct 6, 2024
1 parent 041684f commit 6f8c781
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nextjs/PageNextJs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ initSentry();

const PageNextJs = (props: Props) => (
<>
<Head></Head>
<Head> <title>Title</title></Head>
{ props.children }
</>
);
Expand Down
12 changes: 11 additions & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
import { type ChakraProps } from '@chakra-ui/react';
import * as Sentry from '@sentry/react';
import { QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import type { AppProps } from 'next/app';
import React from 'react';

import type { NextPageWithLayout } from 'nextjs/types';

import useQueryClientConfig from 'lib/api/useQueryClientConfig';
import { AppContextProvider } from 'lib/contexts/app';
import { ChakraProvider } from 'lib/contexts/chakra';
import useLoadFeatures from 'lib/growthbook/useLoadFeatures';
import useNotifyOnNavigation from 'lib/hooks/useNotifyOnNavigation';
import AppErrorBoundary from 'ui/shared/AppError/AppErrorBoundary';
import AppErrorGlobalContainer from 'ui/shared/AppError/AppErrorGlobalContainer';
import GoogleAnalytics from 'ui/shared/GoogleAnalytics';
import Web3ModalProvider from 'ui/shared/Web3ModalProvider';

import 'lib/setLocale';
Expand All @@ -37,6 +41,8 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
useLoadFeatures();
useNotifyOnNavigation();

const queryClient = useQueryClientConfig();

const handleError = React.useCallback((error: Error) => {
Sentry.captureException(error);
}, []);
Expand All @@ -50,7 +56,11 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
>
<Web3ModalProvider>
<AppContextProvider pageProps={ pageProps }>
<Component { ...pageProps }/>
<QueryClientProvider client={ queryClient }>
<Component { ...pageProps }/>
<ReactQueryDevtools buttonPosition="bottom-left" position="left"/>
<GoogleAnalytics/>
</QueryClientProvider>
</AppContextProvider>
</Web3ModalProvider>
</AppErrorBoundary>
Expand Down

0 comments on commit 6f8c781

Please sign in to comment.