feat: Enhance UI components with improved styles and responsiveness across various views

This commit is contained in:
2026-04-22 10:56:39 -04:00
parent 8baf7d6c7d
commit 71b031ca64
14 changed files with 108 additions and 103 deletions

View File

@@ -24,7 +24,9 @@ Alpine.store('notifications', {
},
addNotification(notification) {
notification = notification[0];
// Livewire dispatches pass args as an array; unwrap if needed.
if (Array.isArray(notification)) notification = notification[0];
if (!notification || typeof notification !== 'object') return;
notification.show = false;
notification.id = Date.now() + Math.floor(Math.random() * 1000);
notification.type = notification.type || 'success';