Skip to content

Commit d87e2ee

Browse files
feat:[lar-137] Change indicator and count component to volt component
feat:[lar-137] Change indicator and count livewire component to volt component
1 parent bad57d8 commit d87e2ee

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

resources/views/livewire/notification-count.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
state(['count' => Auth::user()->unreadNotifications()->count()]);
1111
12-
on(['NotificationMarkedAsRead' => fn (int $count) => $count );
12+
on(['NotificationMarkedAsRead' => fn (int $count) => $count ]);
1313
1414
?>
1515

resources/views/livewire/notification-indicator.blade.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
1010
state(['hasNotification' => Auth::user()->unreadNotifications()->count() > 0 ]);
1111
12-
on(['NotificationMarkedAsRead' => fn (int $count) => $count > 0]);
12+
on(['NotificationMarkedAsRead' => fn (int $count) => $count > 0 ]);
1313
1414
?>
1515

1616
<span
1717
@class([
18-
'hidden' => !$hasNotification,
19-
'shadow-solid absolute right-0 top-0 block size-2 rounded-full bg-primary-600 text-white' => $hasNotification
18+
'shadow-solid absolute right-0 top-0 block size-2 rounded-full bg-primary-600 text-white',
19+
'hidden' => ! $hasNotification,
20+
'block' => $hasNotification,
2021
])
2122
></span>

0 commit comments

Comments
 (0)