Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit fb6bc5a

Browse files
committed
Remove unused div
1 parent e510d5d commit fb6bc5a

File tree

1 file changed

+23
-25
lines changed

1 file changed

+23
-25
lines changed
Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
1-
<div {{ $attributes->only(['v-if', 'v-show', 'class'])->class('flex items-center justify-between') }}>
2-
<button {{ $attributes->except(['v-if', 'v-show', 'class'])->class([
3-
'rounded-md shadow-sm bg-indigo-500 hover:bg-indigo-700 text-white font-bold py-2 px-4 focus:outline-none focus:shadow-outline'
4-
])->merge([
5-
'type' => $type
6-
]) }}
7-
>
8-
@if(trim($slot))
9-
{{ $slot }}
10-
@else
11-
<div class="flex flex-row items-center justify-center">
12-
<svg
13-
v-if="@js($spinner) && form.processing"
14-
class="animate-spin mr-3 h-5 w-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
15-
>
16-
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" />
17-
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" />
18-
</svg>
1+
<button {{ $attributes->class([
2+
'rounded-md shadow-sm bg-indigo-500 hover:bg-indigo-700 text-white font-bold py-2 px-4 focus:outline-none focus:shadow-outline'
3+
])->merge([
4+
'type' => $type
5+
]) }}
6+
>
7+
@if(trim($slot))
8+
{{ $slot }}
9+
@else
10+
<div class="flex flex-row items-center justify-center">
11+
<svg
12+
v-if="@js($spinner) && form.processing"
13+
class="animate-spin mr-3 h-5 w-5 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
14+
>
15+
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" />
16+
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" />
17+
</svg>
1918

20-
<span :class="{ 'opacity-50': form.processing }">
21-
{{ $label }}
22-
</span>
23-
</div>
24-
@endif
25-
</button>
26-
</div>
19+
<span :class="{ 'opacity-50': form.processing }">
20+
{{ $label }}
21+
</span>
22+
</div>
23+
@endif
24+
</button>

0 commit comments

Comments
 (0)