From f80a6b8d5a991e854eb3b32a789da4c24f92ee06 Mon Sep 17 00:00:00 2001 From: gregfromstl Date: Thu, 22 May 2025 12:05:22 -0700 Subject: [PATCH] feat: add image support to payment links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- apps/dashboard/src/@/api/universal-bridge/links.ts | 6 ++++-- apps/dashboard/src/app/pay/[id]/page.tsx | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/src/@/api/universal-bridge/links.ts b/apps/dashboard/src/@/api/universal-bridge/links.ts index 634bf5df6b6..68e5011c18f 100644 --- a/apps/dashboard/src/@/api/universal-bridge/links.ts +++ b/apps/dashboard/src/@/api/universal-bridge/links.ts @@ -5,7 +5,8 @@ import { UB_BASE_URL } from "./constants"; type PaymentLink = { clientId: string; - label?: string; + title?: string; + imageUrl?: string; receiver: string; destinationToken: { address: string; @@ -36,7 +37,8 @@ export async function getPaymentLink(props: { const { data } = await res.json(); return { clientId: data.clientId, - label: data.label, + title: data.title, + imageUrl: data.imageUrl, receiver: data.receiver, destinationToken: data.destinationToken, amount: data.amount ? BigInt(data.amount) : undefined, diff --git a/apps/dashboard/src/app/pay/[id]/page.tsx b/apps/dashboard/src/app/pay/[id]/page.tsx index bfee49a94ec..77543f9818a 100644 --- a/apps/dashboard/src/app/pay/[id]/page.tsx +++ b/apps/dashboard/src/app/pay/[id]/page.tsx @@ -62,7 +62,8 @@ export default async function PayPage({ amount={paymentLink.amount ? BigInt(paymentLink.amount) : undefined} token={token} clientId={paymentLink.clientId} - name={paymentLink.label} + name={paymentLink.title} + image={paymentLink.imageUrl} theme={theme} /> );