Skip to content

Commit 77a8a54

Browse files
committed
chore: update payments empty state link to the payment links page
1 parent ed65f4c commit 77a8a54

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import { TableRow } from "./PaymentsTableRow";
1919
export function RecentPaymentsSection(props: {
2020
client: ThirdwebClient;
2121
projectClientId: string;
22+
teamSlug: string;
23+
projectSlug: string;
2224
teamId: string;
2325
}) {
2426
const { data: payPurchaseData, isLoading } = useQuery<
@@ -95,7 +97,10 @@ export function RecentPaymentsSection(props: {
9597
className="flex items-center gap-2"
9698
asChild
9799
>
98-
<Link href="/pay" target="_blank">
100+
<Link
101+
href={`/team/${props.teamSlug}/${props.projectSlug}/payments/links`}
102+
target="_blank"
103+
>
99104
Create Payment Link
100105
<ArrowRightIcon className="size-4" />
101106
</Link>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ export default async function Page(props: {
4545
client={client}
4646
projectClientId={project.publishableKey}
4747
teamId={project.teamId}
48+
projectSlug={params.project_slug}
49+
teamSlug={params.team_slug}
4850
/>
4951
<div className="h-12" />
5052
<QuickStartSection

0 commit comments

Comments
 (0)