hide select button for notification when notification list is null

This commit is contained in:
smanylov
2026-05-13 10:57:20 +07:00
parent 71f7120239
commit 294e16e1a6
2 changed files with 23 additions and 21 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "no-copy-frontend", "name": "no-copy-frontend",
"version": "0.111.0", "version": "0.112.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev -p 2999", "dev": "next dev -p 2999",
@@ -81,6 +81,7 @@ export function NotificationsList() {
</> </>
)} )}
{allNotifications?.notifications.length !== 0 && (
<button <button
className="btn btn-primary" className="btn btn-primary"
onClick={() => { onClick={() => {
@@ -103,6 +104,7 @@ export function NotificationsList() {
> >
{allNotificationSelectedOnPage ? t('deselect') : t('select-all')} {allNotificationSelectedOnPage ? t('deselect') : t('select-all')}
</button> </button>
)}
</div> </div>
); );
}, },