Skip to content

Commit 36d3212

Browse files
Remove HasLink concern and related methods
1 parent e466d6a commit 36d3212

File tree

3 files changed

+2
-74
lines changed

3 files changed

+2
-74
lines changed

resources/views/components/simple-alert.blade.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
'icon' => null,
88
'iconVerticalAlignment' => 'center',
99
'iconAnimation' => null,
10-
'link' => null,
11-
'linkBlank' => false,
12-
'linkLabel' => null,
1310
'title' => null,
1411
])
1512

@@ -59,20 +56,12 @@
5956
@endif
6057
</div>
6158
@endif
62-
@if($getLink() || $getActions())
59+
@if($getActions())
6360
<div @class([
6461
'flex items-center gap-3',
6562
$getActionsVerticalAlignment() === 'start' ? 'self-start' : 'self-center',
6663
])>
6764
<div class="flex items-center whitespace-nowrap gap-3">
68-
@if($getLink())
69-
<p class="text-sm md:mt-0 self-center">
70-
<a href="{{ $getLink() }}" {{ $getLinkBlank() ? 'target="_blank"' : '' }} class="whitespace-nowrap font-medium text-custom-400 hover:text-custom-500">
71-
{{ $getLinkLabel() }}
72-
<span aria-hidden="true"> →</span>
73-
</a>
74-
</p>
75-
@endif
7665
@if($getActions())
7766
<div class="gap-3 flex items-center justify-start">
7867
@foreach ($getActions() as $action)

src/Components/Concerns/HasLink.php

Lines changed: 0 additions & 59 deletions
This file was deleted.

src/Components/SimpleAlert.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use CodeWithDennis\SimpleAlert\Components\Concerns\HasDescription;
1010
use CodeWithDennis\SimpleAlert\Components\Concerns\HasIcon;
1111
use CodeWithDennis\SimpleAlert\Components\Concerns\HasIconVerticalAlignment;
12-
use CodeWithDennis\SimpleAlert\Components\Concerns\HasLink;
1312
use CodeWithDennis\SimpleAlert\Components\Concerns\HasSimple;
1413
use CodeWithDennis\SimpleAlert\Components\Concerns\HasTitle;
1514
use Filament\Schemas\Components\Component;
@@ -22,15 +21,14 @@ class SimpleAlert extends Component
2221
use HasDescription;
2322
use HasIcon;
2423
use HasIconVerticalAlignment;
25-
use HasLink;
2624
use HasSimple;
2725
use HasTitle;
2826

2927
protected string $view = 'filament-simple-alert::components.simple-alert';
3028

3129
public static function make(): static
3230
{
33-
return app(static::class);
31+
return app(self::class);
3432
}
3533

3634
public function actions(array|Closure $actions): static

0 commit comments

Comments
 (0)