-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
814809d
commit 6833dd4
Showing
7 changed files
with
127 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,42 @@ | ||
import { Dashboard } from '@mui/icons-material'; | ||
import { Box, Button, Typography } from '@mui/material'; | ||
import { checkValidAccessToken, IconMenuExplorer, IconUser, Layout } from 'lib/main'; | ||
import { useThemeMode } from 'lib/main'; | ||
import React from 'react'; | ||
import { QueryClient } from '@tanstack/react-query'; | ||
import { IconMenuExplorer, IconUser, Layout, walletConfig, WalletProvider } from 'lib/main'; | ||
import { Outlet } from 'react-router-dom'; | ||
import { useAccountEffect, useSwitchAccount } from 'wagmi'; | ||
|
||
const config = walletConfig('6482349197b073ab1d34e32ec4907c1d'); | ||
const queryClient = new QueryClient(); | ||
|
||
export default function App() { | ||
return ( | ||
<Layout | ||
walletConnectId="6482349197b073ab1d34e32ec4907c1d" | ||
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: '/dashboard', | ||
children: [] as { title: string; url: string }[], | ||
}, | ||
]} | ||
> | ||
<Outlet /> | ||
</Layout> | ||
<WalletProvider wagmiConfig={config} queryClient={queryClient}> | ||
<Layout | ||
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> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters