-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
45 lines (43 loc) · 1.76 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
import { Dashboard } from '@mui/icons-material';
import { QueryClient } from '@tanstack/react-query';
import { AppStateProvider, IconMenuExplorer, IconUser, Layout, walletConfig, WalletProvider } from 'lib/main';
import { Outlet } from 'react-router-dom';
export const config = walletConfig('6482349197b073ab1d34e32ec4907c1d');
const queryClient = new QueryClient();
export default function App() {
return (
<AppStateProvider>
<WalletProvider wagmiConfig={config} queryClient={queryClient}>
<Layout
role="builder"
requiedLogin={true}
menu={[
{
icon: IconMenuExplorer,
title: 'Explorer',
url: '/explorer',
children: [
{ title: 'Projects', url: '/explorer/projects' },
{ title: 'Campaigns', url: '/explorer/campaigns' },
] as { title: string; url: string }[],
},
{
icon: IconUser,
title: 'Profile',
url: '/test2',
children: [] as { title: string; url: string }[],
},
{
icon: Dashboard,
title: 'Dashboard',
url: '',
children: [] as { title: string; url: string }[],
},
]}
>
<Outlet />
</Layout>
</WalletProvider>
</AppStateProvider>
);
}