Skip to content

Commit dc6f18e

Browse files
[Playground] Refactor Universal Bridge sidebar links and update order
1 parent d24ff14 commit dc6f18e

File tree

1 file changed

+30
-23
lines changed

1 file changed

+30
-23
lines changed

apps/playground-web/src/app/navLinks.ts

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -60,28 +60,6 @@ export const staticSidebarLinks: SidebarLink[] = [
6060
},
6161
],
6262
},
63-
{
64-
name: "Universal Bridge",
65-
expanded: false,
66-
links: [
67-
{
68-
name: "UI Component",
69-
href: "/connect/pay",
70-
},
71-
{
72-
name: "Fund Wallet",
73-
href: "/connect/pay/fund-wallet",
74-
},
75-
{
76-
name: "Commerce",
77-
href: "/connect/pay/commerce",
78-
},
79-
{
80-
name: "Transactions",
81-
href: "/connect/pay/transactions",
82-
},
83-
],
84-
},
8563
{
8664
name: "Auth",
8765
href: "/connect/auth",
@@ -124,6 +102,34 @@ export const staticSidebarLinks: SidebarLink[] = [
124102
},
125103
];
126104

105+
const universalBridgeSidebarLinks: SidebarLink = {
106+
name: "Universal Bridge",
107+
isCollapsible: false,
108+
expanded: false,
109+
links: [
110+
{
111+
name: "UI Component",
112+
href: "/connect/pay",
113+
},
114+
{
115+
name: "Fund Wallet",
116+
href: "/connect/pay/fund-wallet",
117+
},
118+
{
119+
name: "Commerce",
120+
href: "/connect/pay/commerce",
121+
},
122+
{
123+
name: "Transactions",
124+
href: "/connect/pay/transactions",
125+
},
126+
{
127+
name: "Backend API",
128+
href: "https://bridge.thirdweb.com/reference",
129+
},
130+
],
131+
};
132+
127133
const engineSidebarLinks: SidebarLink = {
128134
name: "Engine",
129135
isCollapsible: false,
@@ -167,13 +173,14 @@ export async function getSidebarLinks() {
167173

168174
const sidebarLinks: SidebarLink[] = [
169175
...staticSidebarLinks,
176+
universalBridgeSidebarLinks,
177+
engineSidebarLinks,
170178
{
171179
name: "Insight",
172180
isCollapsible: false,
173181
expanded: false,
174182
links: insightLinks,
175183
},
176-
engineSidebarLinks,
177184
];
178185

179186
return sidebarLinks;

0 commit comments

Comments
 (0)