Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Jan 30, 2024
1 parent 5d0487e commit afa8217
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions resources/views/components/layout/notifications.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,18 @@ class="btn btn--sm btn--icon btn--light"
<div
class="notification-card"
x-data="{ open: false }"
x-bind:class="{
'notification-card--unread': ! notification.is_read,
'notification-card--read': notification.is_read,
'notification-card--open': open,
}"
x-bind:class="{ 'notification-card--open': open }"
>
<div class="notification-card__header">
<div class="notification-card__caption">
<h3 x-bind:id="notification.id" class="notification-card__title" x-text="notification.subject"></h3>
<p x-text="notification.formatted_created_at"></p>
</div>
<button
x-on:click="open = ! open"
aria-label="{{ __('Toggle notification') }}"
x-bind:aria-describedby="notification.id"
class="btn btn--primary btn--sm btn--icon notification-card__control"
x-bind:aria-describedby="notification.id"
x-on:click="open = ! open; markAsRead(notification)"
>
<x-root::icon name="plus" class="btn__icon" />
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/Notifications/RootNotification.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

Check warning on line 1 in src/Notifications/RootNotification.php

View workflow job for this annotation

GitHub Actions / 4️⃣ Coding Standards

Found violation(s) of type: no_unused_imports

namespace App\Notifications;
namespace Cone\Root\Notifications;

use Cone\Root\Notifications\RootChannel;
use Cone\Root\Notifications\RootMessage;
Expand Down

0 comments on commit afa8217

Please sign in to comment.