Skip to content

Commit

Permalink
show profile images for requests
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul committed Apr 2, 2024
1 parent 678516a commit 0c3dcf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/PendingNwc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type PendingItem = {
name_of_connection: string;
date?: bigint;
amount_sats?: bigint;
image?: string;
};

export function PendingNwc() {
Expand Down Expand Up @@ -65,6 +66,7 @@ export function PendingNwc() {
pendingItems.push({
id: p.id,
name_of_connection: contact.name,
image: contact.image_url,
date: p.expiry,
amount_sats: p.amount_sats
});
Expand Down Expand Up @@ -198,7 +200,7 @@ export function PendingNwc() {
<For each={pendingRequests()}>
{(pendingItem) => (
<GenericItem
primaryAvatarUrl=""
primaryAvatarUrl={pendingItem.image || ""}
verb="requested"
amount={pendingItem.amount_sats || 0n}
due={veryShortTimeStamp(pendingItem.date)}
Expand Down

0 comments on commit 0c3dcf6

Please sign in to comment.