Skip to content

Commit 1c660d4

Browse files
committed
[MNY-202] Dashboard: Update resource links in project > bridge page (#8196)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on updating the `QuickstartSection.client.tsx` and `page.tsx` files in the bridge section of the dashboard. It modifies features, links, and documentation references to align with the new bridge functionality. ### Detailed summary - Updated `setupTime` to `5` in `QuickstartSection.client.tsx`. - Changed `features` from `["Swap any token", "Cross-chain swaps"]` to `["Swap any token", "Cross-chain swap"]`. - Updated link `href` from `https://portal.thirdweb.com/payments/swap` to `https://portal.thirdweb.com/bridge/swap` and changed label to "Setup Swap". - Added new documentation link to `page.tsx`: `https://portal.thirdweb.com/bridge`. - Added new playground link to `page.tsx`: `https://playground.thirdweb.com/bridge/swap-widget`. - Removed old commented-out documentation links related to payments. - Removed several links under the footer sections for payments and replaced them with new links relevant to the bridge. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - Added a direct link to Bridge docs in the header for quicker access. - Added a Playground link in the header to enable easy testing of the Bridge swap widget. - Style - Removed footer sections from the Bridge page to streamline the layout and reduce clutter. - Chores - Updated the “Setup Swap” feature card and its link to point to the Bridge setup URL for improved navigation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 30b5c30 commit 1c660d4

File tree

2 files changed

+11
-61
lines changed

2 files changed

+11
-61
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/bridge/QuickstartSection.client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ export function QuickStartSection(props: {
2828
icon={ArrowRightLeftIcon}
2929
setupTime={5}
3030
id="swap_tokens"
31-
features={["Swap any token", "Cross-chain swaps"]}
31+
features={["Swap any token", "Cross-chain swap"]}
3232
description="Swap tokens cross-chain with dedicated swapping endpoints."
3333
link={{
34-
href: `https://portal.thirdweb.com/payments/swap`,
35-
label: "Setup Swaps",
34+
href: `https://portal.thirdweb.com/bridge/swap`,
35+
label: "Setup Swap",
3636
}}
3737
/>
3838

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/bridge/page.tsx

Lines changed: 8 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -69,70 +69,20 @@ export default async function Page(props: {
6969
},
7070
},
7171
links: [
72-
// TODO - add docs when bridge docs are added in portal
73-
// {
74-
// type: "docs",
75-
// href: "https://portal.thirdweb.com/payments",
76-
// },
72+
{
73+
type: "docs",
74+
href: "https://portal.thirdweb.com/bridge",
75+
},
76+
{
77+
type: "playground",
78+
href: "https://playground.thirdweb.com/bridge/swap-widget",
79+
},
7780
{
7881
type: "api",
7982
href: "https://api.thirdweb.com/reference#tag/bridge",
8083
},
8184
],
8285
}}
83-
footer={{
84-
center: {
85-
links: [
86-
{
87-
href: "https://playground.thirdweb.com/payments/ui-components",
88-
label: "UI Component",
89-
},
90-
{
91-
href: "https://playground.thirdweb.com/connect/payments/fund-wallet",
92-
label: "Buy Crypto",
93-
},
94-
{
95-
href: "https://playground.thirdweb.com/connect/payments/commerce",
96-
label: "Checkout",
97-
},
98-
{
99-
href: "https://playground.thirdweb.com/connect/payments/transactions",
100-
label: "Transactions",
101-
},
102-
],
103-
title: "Demos",
104-
},
105-
left: {
106-
links: [
107-
{
108-
href: "https://portal.thirdweb.com/payments",
109-
label: "Overview",
110-
},
111-
{
112-
href: "https://portal.thirdweb.com/typescript/v5/convertCryptoToFiat",
113-
label: "TypeScript",
114-
},
115-
{
116-
href: "https://portal.thirdweb.com/react/v5/pay/fund-wallets",
117-
label: "React",
118-
},
119-
{
120-
href: "https://portal.thirdweb.com/dotnet/universal-bridge/quickstart",
121-
label: ".NET",
122-
},
123-
],
124-
title: "Documentation",
125-
},
126-
right: {
127-
links: [
128-
{
129-
href: "https://www.youtube.com/watch?v=aBu175-VsNY",
130-
label: "Implement cross-chain payments in any app",
131-
},
132-
],
133-
title: "Tutorials",
134-
},
135-
}}
13686
>
13787
<div className="flex flex-col gap-12">
13888
<ResponsiveSearchParamsProvider value={searchParams}>

0 commit comments

Comments
 (0)