Skip to content

Commit

Permalink
Merge pull request #20 from bezhanSalleh/fix/configurable-trait-usage
Browse files Browse the repository at this point in the history
fix configurable trait usage
  • Loading branch information
bezhanSalleh authored Jan 12, 2024
2 parents 0739bc7 + 572237a commit 85fdf7e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/PanelSwitch.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@

use Closure;
use Filament\Panel;
use Filament\Support\Concerns\Configurable;
use Filament\Support\Concerns\EvaluatesClosures;
use Filament\Support\Components\Component;
use Filament\Support\Facades\FilamentView;

class PanelSwitch
class PanelSwitch extends Component
{
use Configurable;
use EvaluatesClosures;

protected array | Closure $excludes = [];

protected bool | Closure | null $visible = null;
Expand Down Expand Up @@ -124,7 +120,7 @@ public function icons(array | Closure $icons, bool $asImage = false): static
return $this;
}

public function iconSize(int | Closure $size = null): static
public function iconSize(int | Closure | null $size = null): static
{
$this->iconSize = $size;

Expand All @@ -138,7 +134,7 @@ public function labels(array | Closure $labels): static
return $this;
}

public function modalWidth(string | Closure $width = null): static
public function modalWidth(string | Closure | null $width = null): static
{
$this->modalWidth = $width;

Expand Down

0 comments on commit 85fdf7e

Please sign in to comment.