From 294e16e1a6404b5188875d2baf8ea125257b0375 Mon Sep 17 00:00:00 2001 From: smanylov Date: Wed, 13 May 2026 10:57:20 +0700 Subject: [PATCH] hide select button for notification when notification list is null --- package.json | 2 +- .../ui/notifications/notifications-list.tsx | 42 ++++++++++--------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index b8768ef..e4cc962 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "no-copy-frontend", - "version": "0.111.0", + "version": "0.112.0", "private": true, "scripts": { "dev": "next dev -p 2999", diff --git a/src/app/ui/notifications/notifications-list.tsx b/src/app/ui/notifications/notifications-list.tsx index 6ff756a..aab28c9 100644 --- a/src/app/ui/notifications/notifications-list.tsx +++ b/src/app/ui/notifications/notifications-list.tsx @@ -81,28 +81,30 @@ export function NotificationsList() { )} - + const newSelection = { ...rowSelection }; + currentPageRows.forEach(row => { + newSelection[row.original.id] = true; + }); + setRowSelection(newSelection); + } + }} + > + {allNotificationSelectedOnPage ? t('deselect') : t('select-all')} + + )} ); },