mirror of
https://github.com/pelican-dev/panel.git
synced 2025-09-08 08:08:54 +02:00
small cleanup
This commit is contained in:
parent
4e469eda41
commit
e626ae40e7
@ -5,7 +5,6 @@ namespace App\Livewire;
|
|||||||
use Closure;
|
use Closure;
|
||||||
use Filament\Notifications\Concerns;
|
use Filament\Notifications\Concerns;
|
||||||
use Filament\Support\Components\ViewComponent;
|
use Filament\Support\Components\ViewComponent;
|
||||||
use Filament\Support\Concerns\EvaluatesClosures;
|
|
||||||
use Illuminate\Contracts\Support\Arrayable;
|
use Illuminate\Contracts\Support\Arrayable;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
@ -16,20 +15,19 @@ final class AlertBanner extends ViewComponent implements Arrayable
|
|||||||
use Concerns\HasId;
|
use Concerns\HasId;
|
||||||
use Concerns\HasStatus;
|
use Concerns\HasStatus;
|
||||||
use Concerns\HasTitle;
|
use Concerns\HasTitle;
|
||||||
use EvaluatesClosures;
|
|
||||||
|
|
||||||
protected bool|Closure $closable = false;
|
protected bool|Closure $closable = false;
|
||||||
|
|
||||||
protected string $view = 'livewire.alerts.alert-banner';
|
protected string $view = 'livewire.alerts.alert-banner';
|
||||||
|
|
||||||
protected string $viewIdentifier = 'notification';
|
protected string $viewIdentifier = 'alert-banner';
|
||||||
|
|
||||||
public function __construct(string $id)
|
public function __construct(string $id)
|
||||||
{
|
{
|
||||||
$this->id($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 = new self($id ?? Str::orderedUuid());
|
||||||
$static->configure();
|
$static->configure();
|
||||||
@ -37,14 +35,6 @@ final class AlertBanner extends ViewComponent implements Arrayable
|
|||||||
return $static;
|
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}
|
* @return array{id: string, title: ?string, body: ?string, status: ?string, icon: ?string, closeable: bool}
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user