feat(notifications): removed unknown notification from layoute

This commit is contained in:
misha
2026-03-05 13:44:33 +03:00
parent 442fc0ec14
commit e39638be7f

View File

@@ -133,7 +133,7 @@ class NotificationWidget extends StatelessWidget {
CommentComplaintNotification() => _CommentComplaintWidget(notification: notification as CommentComplaintNotification),
CommentDeletedNotification() => _CommentDeletedWidget(notification: notification as CommentDeletedNotification),
UserSubscribedNotification() => _UserSubscribedWidget(notification: notification as UserSubscribedNotification),
UnknownNotification() => _UnknownNotificationWidget(notification: notification as UnknownNotification),
UnknownNotification() => const SizedBox.shrink(),
};
}
}
@@ -594,14 +594,6 @@ class _EntityCommentedWidget extends StatelessWidget {
}
}
class _UnknownNotificationWidget extends StatelessWidget {
const _UnknownNotificationWidget({required this.notification});
final UnknownNotification notification;
@override
Widget build(BuildContext context) {
return _BaseNotificationWidget(isRead: false, notificationsText: 'Неизвестное уведомление', createdAt: DateTime.now(), onTap: null);
}
}
// Новые виджеты для дополнительных типов уведомлений
class _PlanSubscriptionExpiredWidget extends StatelessWidget {