small cleanup

This commit is contained in:
Boy132 2025-06-04 23:42:42 +02:00
parent 4e469eda41
commit e626ae40e7

View File

@ -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<string, mixed>
*/
public function getViewData(): array
{
return $this->viewData;
}
/**
* @return array{id: string, title: ?string, body: ?string, status: ?string, icon: ?string, closeable: bool}
*/