-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
61 lines (58 loc) · 1.75 KB
/
App.js
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { useRoutes } from "react-router-dom";
import Layout from "./components/Layout";
import Home from "./components/Home";
import Market from "./components/Market";
import Wallets from "./components/Wallets";
import WalletProfiler from "./components/WalletProfiler";
import Wallet from "./components/Wallet";
import Collections from "./components/Collections";
import CollectionProfiler from "./components/CollectionProfiler";
import Collection from "./components/Collection";
import NftProfiler from "./components/NftProfiler";
import Nft from "./components/Nft";
import NoMatch from "./components/NoMatch";
function Routes() {
return useRoutes([
{
path: "/",
element: <Layout />,
children: [
{ path: "", element: <Home /> },
{ path: "market", element: <Market /> },
{ path: "walletprofiler", element: <WalletProfiler /> },
{
path: "wallets",
element: <Wallets />,
children: [
{ path: "", element: <WalletProfiler /> },
{ path: ":addressId", element: <Wallet /> },
],
},
{ path: "collectionprofiler", element: <CollectionProfiler /> },
{ path: "nftprofiler", element: <NftProfiler /> },
{
path: "collections",
element: <Collections />,
children: [
{ path: "", element: <CollectionProfiler /> },
{ path: ":collectionId", element: <Collection /> },
],
},
{ path: "nfts", element: <NftProfiler /> },
{
path: "nfts/:collectionId/:tokenId",
element: <Nft />,
},
{ path: "*", element: <NoMatch /> },
],
},
]);
}
const App = () => {
return (
<>
<Routes />
</>
);
};
export default App;