Skip to content

Commit a08b62b

Browse files
authored
Feature: swapping guide (#7864)
1 parent 7f11657 commit a08b62b

File tree

3 files changed

+663
-1
lines changed

3 files changed

+663
-1
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/payments/components/AdvancedSection.client.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import { CodeIcon, WebhookIcon } from "lucide-react";
3+
import { ArrowRightLeftIcon, CodeIcon, WebhookIcon } from "lucide-react";
44
import { FeatureCard } from "./FeatureCard.client";
55

66
export function AdvancedSection({
@@ -45,6 +45,19 @@ export function AdvancedSection({
4545
label: "Setup Webhooks",
4646
}}
4747
/>
48+
<FeatureCard
49+
title="Swap Tokens"
50+
icon={ArrowRightLeftIcon}
51+
setupTime={5}
52+
color="green"
53+
id="swap_tokens"
54+
features={["Swap any token", "Cross-chain swaps"]}
55+
description="Swap tokens cross-chain with dedicated swapping endpoints."
56+
link={{
57+
href: `/team/${teamSlug}/${projectSlug}/payments/swap`,
58+
label: "Setup Swaps",
59+
}}
60+
/>
4861
</div>
4962
</section>
5063
);

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ export const sidebar: SideBar = {
4141
href: `${paymentsSlug}/sell`,
4242
name: "Sell Tokens",
4343
},
44+
{
45+
href: `${paymentsSlug}/swap`,
46+
name: "Swap Tokens",
47+
},
4448
{
4549
href: `${paymentsSlug}/tokens`,
4650
name: "Get Token Prices",

0 commit comments

Comments
 (0)