mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-04-07 22:16:46 +02:00
Fix notification label for 'zap' type to include amount and improve clarity
This commit is contained in:
@@ -42,7 +42,7 @@ export function NotificationCard({ notification }: NotificationCardProps) {
|
||||
label: 'commented on your picture',
|
||||
color: 'text-blue-500'
|
||||
};
|
||||
case 'zap':
|
||||
case 'zap': {
|
||||
// Extract amount from zap
|
||||
const bolt11Tag = notification.tags.find(([name]) => name === 'bolt11')?.[1];
|
||||
let amount = '';
|
||||
@@ -59,6 +59,7 @@ export function NotificationCard({ notification }: NotificationCardProps) {
|
||||
label: `zapped your picture${amount}`,
|
||||
color: 'text-yellow-500'
|
||||
};
|
||||
}
|
||||
case 'mention':
|
||||
return {
|
||||
icon: <AtSign className="h-4 w-4 text-purple-500" />,
|
||||
|
||||
Reference in New Issue
Block a user