mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-07 12:58:37 +02:00
small cleanup
This commit is contained in:
parent
4e469eda41
commit
e626ae40e7
@ -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}
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user