Skip to content

Commit e0e5a2a

Browse files
committed
update widget to use basset
1 parent 53543e9 commit e0e5a2a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/resources/views/ui/widgets/livewire.blade.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@
66
@includeWhen(!empty($widget['wrapper']), backpack_view('widgets.inc.wrapper_start'))
77

88
<div class="{{ $widget['class'] ?? 'card' }}" @foreach($widget['attributes'] ?? [] as $key => $value) {{ $key }}="{{ $value }}" @endforeach>
9-
@livewire($widget['component'], $widget['params'] ?? [])
9+
@livewire($widget['content'], $widget['parameters'] ?? [])
1010
</div>
1111

1212
@includeWhen(!empty($widget['wrapper']), backpack_view('widgets.inc.wrapper_end'))
1313

14-
@pushOnce('after_styles')
14+
@bassetBlock('livewire-styles.css')
15+
@push('after_styles')
1516
@livewireStyles
16-
@endPushOnce
17+
@endpush
18+
@endBassetBlock
1719

18-
@pushOnce('after_scripts')
20+
@bassetBlock('livewire-scripts.js')
21+
@push('after_scripts')
1922
@livewireScripts
20-
@endPushOnce
23+
@endpush
24+
@endBassetBlock

0 commit comments

Comments
 (0)