-
Notifications
You must be signed in to change notification settings - Fork 5
/
masa-provider.tsx
36 lines (32 loc) · 1.01 KB
/
masa-provider.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
import './styles.scss';
import {
MasaContextProvider,
MasaContextProviderProps,
} from './masa-context-provider';
import React from 'react';
import { QueryClientProvider } from 'react-query';
import { queryClient } from './masa-query-client';
import { MasaInterface } from '../components';
import ConfiguredRainbowKitProvider from './configured-rainbowkit-provider/configured-rainbowkit-provider';
// needs to be imported using require. Otherwise, it will not load!
require('@rainbow-me/rainbowkit/styles.css');
export const MasaProvider = ({
children,
...args
}: MasaContextProviderProps): JSX.Element => {
return (
<>
<QueryClientProvider client={queryClient}>
<ConfiguredRainbowKitProvider>
<MasaContextProvider {...args}>
<div id="modal-mount" />
<MasaInterface
// disableMetamask={args.noWallet}
/>
{children}
</MasaContextProvider>
</ConfiguredRainbowKitProvider>
</QueryClientProvider>
</>
);
};