Skip to content

Commit c39cbd0

Browse files
Update SimpleAlert to extend Field instead of Component
1 parent 981adb4 commit c39cbd0

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Components/SimpleAlert.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
use CodeWithDennis\SimpleAlert\Components\Concerns\HasIconVerticalAlignment;
1212
use CodeWithDennis\SimpleAlert\Components\Concerns\HasSimple;
1313
use CodeWithDennis\SimpleAlert\Components\Concerns\HasTitle;
14-
use Filament\Schemas\Components\Component;
14+
use Filament\Forms\Components\Field;
1515

16-
class SimpleAlert extends Component
16+
class SimpleAlert extends Field
1717
{
1818
use HasActionVerticalAlignment;
1919
use HasBorder;
@@ -26,11 +26,6 @@ class SimpleAlert extends Component
2626

2727
protected string $view = 'filament-simple-alert::components.simple-alert';
2828

29-
public static function make(): static
30-
{
31-
return app(self::class);
32-
}
33-
3429
public function actions(array|Closure $actions): static
3530
{
3631
$this->actions = $actions;

0 commit comments

Comments
 (0)