Skip to content

Commit b178c1c

Browse files
committed
Update sidebar links and labels across modules
Added 'Playground' links to the main sections of AI, Bridge, Tokens, Wallets, and updated/remodeled their placement. Changed 'REST API' references to 'HTTP API' and updated their URLs to local '/reference' paths in Bridge, Payments, and X402 sidebars. Cleaned up duplicate or misplaced Playground links from resource sections for consistency.
1 parent 7823d35 commit b178c1c

File tree

6 files changed

+35
-29
lines changed

6 files changed

+35
-29
lines changed

apps/portal/src/app/ai/sidebar.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,20 @@ import type { SideBar } from "@/components/Layouts/DocLayout";
44
export const sidebar: SideBar = {
55
links: [
66
{
7-
name: "AI",
7+
name: "Get Started",
8+
href: "/ai/chat",
9+
icon: <ZapIcon />,
10+
},
11+
{
12+
href: "https://playground.thirdweb.com",
13+
name: "Playground",
14+
icon: <ExternalLinkIcon />,
15+
},
16+
{ separator: true },
17+
{
18+
name: "Guides",
819
isCollapsible: false,
920
links: [
10-
{
11-
name: "Get Started",
12-
href: "/ai/chat",
13-
icon: <ZapIcon />,
14-
},
1521
{
1622
name: "Transaction Execution",
1723
href: "/ai/chat/execution",
@@ -61,11 +67,6 @@ export const sidebar: SideBar = {
6167
name: "Resources",
6268
isCollapsible: false,
6369
links: [
64-
{
65-
href: "https://playground.thirdweb.com/ai/chat",
66-
icon: <ExternalLinkIcon />,
67-
name: "Playground",
68-
},
6970
{
7071
href: "/ai/faq",
7172
name: "FAQ",

apps/portal/src/app/bridge/sidebar.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ZapIcon } from "lucide-react";
1+
import { ExternalLinkIcon, ZapIcon } from "lucide-react";
22
import type { SideBar } from "@/components/Layouts/DocLayout";
33
import { EngineIcon, ReactIcon, TypeScriptIcon, UnityIcon } from "@/icons";
44
import { UnrealEngineIcon } from "../../icons/sdks/UnrealEngineIcon";
@@ -12,6 +12,11 @@ export const sidebar: SideBar = {
1212
name: "Get Started",
1313
icon: <ZapIcon />,
1414
},
15+
{
16+
href: "https://playground.thirdweb.com",
17+
name: "Playground",
18+
icon: <ExternalLinkIcon />,
19+
},
1520
{ separator: true },
1621
{
1722
isCollapsible: false,
@@ -64,9 +69,9 @@ export const sidebar: SideBar = {
6469
isCollapsible: false,
6570
links: [
6671
{
67-
href: `https://payments.thirdweb.com/reference`,
72+
href: `/reference`,
6873
icon: <EngineIcon />,
69-
name: "REST API",
74+
name: "HTTP API",
7075
},
7176
{
7277
href: "/references/typescript/v5",

apps/portal/src/app/payments/sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ export const sidebar: SideBar = {
6565
isCollapsible: false,
6666
links: [
6767
{
68-
href: `https://payments.thirdweb.com/reference`,
68+
href: `/reference`,
6969
icon: <EngineIcon />,
70-
name: "REST API",
70+
name: "HTTP API",
7171
},
7272
{
7373
href: "/references/typescript/v5",

apps/portal/src/app/tokens/sidebar.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ZapIcon } from "lucide-react";
1+
import { ExternalLinkIcon, ZapIcon } from "lucide-react";
22
import type { SideBar } from "@/components/Layouts/DocLayout";
33

44
const slug = "/tokens";
@@ -10,6 +10,11 @@ export const sidebar: SideBar = {
1010
name: "Get Started",
1111
icon: <ZapIcon />,
1212
},
13+
{
14+
href: "https://playground.thirdweb.com",
15+
name: "Playground",
16+
icon: <ExternalLinkIcon />,
17+
},
1318
{ separator: true },
1419
{
1520
isCollapsible: false,

apps/portal/src/app/wallets/sidebar.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ export const sidebar: SideBar = {
1212
name: "Get Started",
1313
icon: <ZapIcon />,
1414
},
15+
{
16+
href: "https://playground.thirdweb.com/wallets",
17+
name: "Playground",
18+
icon: <ExternalLinkIcon />,
19+
},
1520
{ separator: true },
1621
{
1722
isCollapsible: false,
@@ -122,11 +127,6 @@ export const sidebar: SideBar = {
122127
isCollapsible: false,
123128
name: "Resources",
124129
links: [
125-
{
126-
href: "https://playground.com/wallets",
127-
icon: <ExternalLinkIcon />,
128-
name: "Playground",
129-
},
130130
{
131131
href: `${walletSlug}/wallet-types`,
132132
name: "Wallet Types",

apps/portal/src/app/x402/sidebar.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ export const sidebar: SideBar = {
4545
isCollapsible: false,
4646
links: [
4747
{
48-
href: `https://payments.thirdweb.com/reference`,
48+
href: `/reference`,
4949
icon: <EngineIcon />,
50-
name: "REST API",
50+
name: "HTTP API",
5151
},
5252
{
5353
href: "/references/typescript/v5",
@@ -76,11 +76,6 @@ export const sidebar: SideBar = {
7676
{
7777
isCollapsible: false,
7878
links: [
79-
{
80-
href: "https://playground.com/x402",
81-
icon: <ExternalLinkIcon />,
82-
name: "Playground",
83-
},
8479
{
8580
href: `${x402Slug}/faq`,
8681
name: "FAQ",

0 commit comments

Comments
 (0)