Refactor code and update UI components

This commit is contained in:
Andras Bacsai committed 2024-03-22 11:34:15 +01:00
1 parent ca9a2cb13a
commit 8b7e1e4169
51 files changed
+592 -609

No files matched your search

@@ -6,14 +6,10 @@
@isset($confirmAction)
x-on:{{ explode('(', $confirmAction)[0] }}.window="$wire.{{ explode('(', $confirmAction)[0] }}"
@endisset
@if ($isModal) onclick="{{ $modalId }}.showModal()" @endif>
>
{{ $slot }}
@if ($attributes->get('type') === 'submit')
<x-loading wire:target="submit" wire:loading.delay />
@else
@if ($attributes->whereStartsWith('wire:click')->first())
<x-loading wire:target="{{ $attributes->whereStartsWith('wire:click')->first() }}" wire:loading.delay />
@endif
@if ($attributes->whereStartsWith('wire:click')->first() && $attributes->get('type') === 'submit')
<x-loading wire:target="{{ $attributes->whereStartsWith('wire:click')->first() }}" wire:loading.delay />
@endif
</button>