Skip to content

Commit 860fedf

Browse files
committed
Make psalm happy
Change rowsView to rowView
1 parent 4649488 commit 860fedf

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

resources/views/tailwind/includes/table.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class="rounded-md shadow-sm border-cool-gray-300 block transition duration-150 e
8080
</x-livewire-tables::table.cell>
8181
@endif
8282

83-
@include($rowsView, ['row' => $row])
83+
@include($rowView, ['row' => $row])
8484
</x-livewire-tables::table.row>
8585
@empty
8686
<x-livewire-tables::table.row>

src/DataTableComponent.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,12 @@ public function getRowsProperty(): LengthAwarePaginator
170170
public function render()
171171
{
172172
return view('livewire-tables::'.config('livewire-tables.theme').'.datatable')
173-
->withColumns($this->columns())
174-
->withRowsView($this->rowView())
175-
->withFiltersView($this->filtersView())
176-
->withCustomFilters($this->filters())
177-
->withRows($this->rows);
173+
->with([
174+
'columns' => $this->columns(),
175+
'rowView' => $this->rowView(),
176+
'filtersView' => $this->filtersView(),
177+
'customFilters' => $this->filters(),
178+
'rows' => $this->rows,
179+
]);
178180
}
179181
}

0 commit comments

Comments
 (0)