diff --git a/app/Livewire/AlertBanner.php b/app/Livewire/AlertBanner.php index a60f57555..d4e4c475e 100644 --- a/app/Livewire/AlertBanner.php +++ b/app/Livewire/AlertBanner.php @@ -5,7 +5,6 @@ namespace App\Livewire; use Closure; use Filament\Notifications\Concerns; use Filament\Support\Components\ViewComponent; -use Filament\Support\Concerns\EvaluatesClosures; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Str; @@ -16,20 +15,19 @@ final class AlertBanner extends ViewComponent implements Arrayable use Concerns\HasId; use Concerns\HasStatus; use Concerns\HasTitle; - use EvaluatesClosures; protected bool|Closure $closable = false; protected string $view = 'livewire.alerts.alert-banner'; - protected string $viewIdentifier = 'notification'; + protected string $viewIdentifier = 'alert-banner'; public function __construct(string $id) { $this->id($id); } - public static function make(?string $id = null): static + public static function make(?string $id = null): AlertBanner { $static = new self($id ?? Str::orderedUuid()); $static->configure(); @@ -37,14 +35,6 @@ final class AlertBanner extends ViewComponent implements Arrayable return $static; } - /** - * @return array - */ - public function getViewData(): array - { - return $this->viewData; - } - /** * @return array{id: string, title: ?string, body: ?string, status: ?string, icon: ?string, closeable: bool} */