-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_app.tsx
46 lines (42 loc) · 1.28 KB
/
_app.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import '@/styles/global.css';
import 'react-image-crop/dist/ReactCrop.css';
import type { AppProps } from 'next/app';
import { GlobalStyles } from '@/styles/globalStyles';
import { blackTheme } from '@/styles/theme';
import { Header, Footer } from '@/components/global';
import { Provider } from 'react-redux';
import { store } from '@/redux/store';
import { QueryClient, QueryClientProvider } from 'react-query';
import {
wagmiConfig,
WagmiConfig,
RainbowKitProvider,
chains,
darkTheme,
} from '@/wallet/walletConfig';
import AppProvider from '@/contexts/AppContext';
import { appInfo } from '@/wallet/walletInfo';
const queryClient = new QueryClient();
function MyApp({ Component, pageProps }: AppProps) {
return (
<Provider store={store}>
<QueryClientProvider client={queryClient}>
<WagmiConfig config={wagmiConfig}>
<RainbowKitProvider
chains={chains}
theme={darkTheme()}
appInfo={appInfo}
>
<GlobalStyles theme={blackTheme} />
<AppProvider>
<Header />
<Component {...pageProps} />
<Footer />
</AppProvider>
</RainbowKitProvider>
</WagmiConfig>
</QueryClientProvider>
</Provider>
);
}
export default MyApp;