From c1b4dac5a38349b6dccc8267c75b4f46403e7953 Mon Sep 17 00:00:00 2001 From: en Date: Thu, 30 Jan 2025 18:21:55 +0100 Subject: [PATCH] feat(zaps): show profile image on qr if available --- src/components/Zap.tsx | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/src/components/Zap.tsx b/src/components/Zap.tsx index dfd1a74..376397c 100644 --- a/src/components/Zap.tsx +++ b/src/components/Zap.tsx @@ -128,6 +128,7 @@ type ZapQRProps = { handleQRExpiry: () => void setTotalZapAmount?: Dispatch> setHasZapped?: Dispatch> + profileImage?: string } export const ZapQR = React.memo( @@ -137,6 +138,7 @@ export const ZapQR = React.memo( handleQRExpiry, setTotalZapAmount, setHasZapped, + profileImage, children }: PropsWithChildren) => { const { ndk } = useNDKContext() @@ -188,13 +190,22 @@ export const ZapQR = React.memo( value={paymentRequest.pr} height={235} width={235} - imageSettings={{ - src: 'https://m.primal.net/JPWc.png', - height: 35, - width: 35, - excavate: false - }} /> + {profileImage && ( +
+ Profile Avatar +
+ )}