Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanalhattami authored and github-actions[bot] committed Apr 24, 2024
1 parent 4abf52f commit 9beec08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Columns/ContextMenuColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace AymanAlhattami\FilamentContextMenu\Columns;

use Filament\Support\Concerns\EvaluatesClosures;
use Filament\Tables\Columns\TextColumn;

class ContextMenuColumn extends TextColumn
Expand Down
7 changes: 3 additions & 4 deletions src/Traits/ColumnWithContextMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9beec08

Please sign in to comment.