Skip to content

Commit a246365

Browse files
committed
fixes
1 parent b751960 commit a246365

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

resources/views/components/editable.blade.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<div
88
x-data="{
99
field: '{{ $field }}',
10-
type: '{{ $type }}',
1110
id: {{ $model->id }},
1211
value: {{ json_encode($model->$field) }},
1312
original: {{ json_encode($model->$field) }},

resources/views/components/table.blade.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@
2424
{{ $header->title }}
2525
</a>
2626
<a href="#!" wire:click.prevent="sort('{{ $header->sortBy }}')" class="flex">
27-
<i data-feather="chevron-up"
28-
class="{{ $sortBy === $header->sortBy && $sortOrder === 'asc' ? 'text-gray-900' : 'text-gray-400'}} h-4 w-4"></i>
29-
<i data-feather="chevron-down"
30-
class="{{ $sortBy === $header->sortBy && $sortOrder === 'desc' ? 'text-gray-900' : 'text-gray-400'}} h-4 w-4"></i>
27+
<i data-feather="chevron-up" class="{{ $sortBy === $header->sortBy && $sortOrder === 'asc' ? 'text-gray-900' : 'text-gray-400'}} h-4 w-4"></i>
28+
<i data-feather="chevron-down" class="{{ $sortBy === $header->sortBy && $sortOrder === 'desc' ? 'text-gray-900' : 'text-gray-400'}} h-4 w-4"></i>
3129
</a>
3230
</div>
3331
@else
@@ -61,8 +59,7 @@ class="{{ $sortBy === $header->sortBy && $sortOrder === 'desc' ? 'text-gray-900'
6159
<div class="px-3 py-2 flex justify-end">
6260
@foreach ($actionsByRow as $action)
6361
@component('laravel-views::components.action', ['action' => $action, 'item' => $item])
64-
<i data-feather="{{ $action->icon }}"
65-
class="mr-2 text-gray-400 hover:text-blue-600 transition-all duration-300 ease-in-out focus:text-blue-600 active:text-blue-600"></i>
62+
<i data-feather="{{ $action->icon }}" class="mr-2 text-gray-400 hover:text-blue-600 transition-all duration-300 ease-in-out focus:text-blue-600 active:text-blue-600"></i>
6663
@endcomponent
6764
@endforeach
6865
</div>
@@ -71,4 +68,4 @@ class="mr-2 text-gray-400 hover:text-blue-600 transition-all duration-300 ease-i
7168
</tr>
7269
@endforeach
7370
</tbody>
74-
</table>
71+
</table>

src/UI/UI.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66

77
class UI
88
{
9-
public function editable($model, $field, $type = 'input')
9+
public function editable($model, $field)
1010
{
1111
return view('laravel-views::components.editable', [
1212
'model' => $model,
13-
'field' => $field,
14-
'type' => $type,
13+
'field' => $field
1514
])->render();
1615
}
1716

0 commit comments

Comments
 (0)