feat: notifications link to relevant pages when available.

This commit is contained in:
= 2025-07-01 15:52:30 +01:00
parent 75abbb3d51
commit 3081adc945
12 changed files with 59 additions and 12 deletions

View file

@ -5,6 +5,7 @@ export interface Notification {
type: string;
title: string;
message: string;
link?: string;
data: any;
isRead: boolean;
createdAt: string;

View file

@ -197,6 +197,7 @@ function handleWebSocketMessage(event: MessageEvent): void {
type: message.notificationType,
title: message.title,
message: message.message,
link: message.link,
isRead: false,
createdAt: message.timestamp,
data: message.amount ? { amount: message.amount } : null