From 9beec08fe6dce1ebc9b33e5629960422a416f8fe Mon Sep 17 00:00:00 2001 From: aymanalhattami Date: Wed, 24 Apr 2024 14:23:07 +0000 Subject: [PATCH] Fix styling --- src/Columns/ContextMenuColumn.php | 1 - src/Traits/ColumnWithContextMenu.php | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Columns/ContextMenuColumn.php b/src/Columns/ContextMenuColumn.php index cd82363..b98bea1 100644 --- a/src/Columns/ContextMenuColumn.php +++ b/src/Columns/ContextMenuColumn.php @@ -2,7 +2,6 @@ namespace AymanAlhattami\FilamentContextMenu\Columns; -use Filament\Support\Concerns\EvaluatesClosures; use Filament\Tables\Columns\TextColumn; class ContextMenuColumn extends TextColumn diff --git a/src/Traits/ColumnWithContextMenu.php b/src/Traits/ColumnWithContextMenu.php index cf568fd..02f0624 100644 --- a/src/Traits/ColumnWithContextMenu.php +++ b/src/Traits/ColumnWithContextMenu.php @@ -2,21 +2,20 @@ namespace AymanAlhattami\FilamentContextMenu\Traits; -use Filament\Support\Concerns\EvaluatesClosures; - trait ColumnWithContextMenu { protected string $wrapperView = 'filament-context-menu::filament.tables.columns.column-with-context-menu'; protected ?string $mainView = ''; - protected \Closure|array $contextMenuActions = []; + + protected \Closure | array $contextMenuActions = []; public function getContextMenuActions(): array { return $this->evaluate($this->contextMenuActions); } - public function contextMenuActions(array|\Closure $contextMenuActions): static + public function contextMenuActions(array | \Closure $contextMenuActions): static { $this->contextMenuActions = $contextMenuActions;