website cleanup
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import type { Notification } from '@core/notifications/application';
|
||||
import type { Notification } from './notificationTypes';
|
||||
import {
|
||||
Bell,
|
||||
AlertTriangle,
|
||||
@@ -120,8 +120,8 @@ export default function ToastNotification({
|
||||
{/* Content */}
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="flex items-start justify-between gap-2">
|
||||
<p className="text-sm font-semibold text-white truncate">
|
||||
{notification.title}
|
||||
<p className="text-sm font-semibold text-white truncate">
|
||||
{notification.title ?? 'Notification'}
|
||||
</p>
|
||||
<button
|
||||
onClick={(e) => {
|
||||
@@ -134,7 +134,7 @@ export default function ToastNotification({
|
||||
</button>
|
||||
</div>
|
||||
<p className="text-xs text-gray-400 line-clamp-2 mt-1">
|
||||
{notification.body}
|
||||
{notification.message}
|
||||
</p>
|
||||
{notification.actionUrl && (
|
||||
<button
|
||||
@@ -151,4 +151,4 @@ export default function ToastNotification({
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user