Skip to content

Commit 23029db

Browse files
gregfromstlClaude
and
Claude
authored
Feature: Add image support to payment links (#7129)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 526b6b5 commit 23029db

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

apps/dashboard/src/@/api/universal-bridge/links.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { UB_BASE_URL } from "./constants";
55

66
type PaymentLink = {
77
clientId: string;
8-
label?: string;
8+
title?: string;
9+
imageUrl?: string;
910
receiver: string;
1011
destinationToken: {
1112
address: string;
@@ -36,7 +37,8 @@ export async function getPaymentLink(props: {
3637
const { data } = await res.json();
3738
return {
3839
clientId: data.clientId,
39-
label: data.label,
40+
title: data.title,
41+
imageUrl: data.imageUrl,
4042
receiver: data.receiver,
4143
destinationToken: data.destinationToken,
4244
amount: data.amount ? BigInt(data.amount) : undefined,

apps/dashboard/src/app/pay/[id]/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ export default async function PayPage({
6262
amount={paymentLink.amount ? BigInt(paymentLink.amount) : undefined}
6363
token={token}
6464
clientId={paymentLink.clientId}
65-
name={paymentLink.label}
65+
name={paymentLink.title}
66+
image={paymentLink.imageUrl}
6667
theme={theme}
6768
/>
6869
);

0 commit comments

Comments
 (0)