Fix active status not showing immediatly (livewire)
This commit is contained in:
@@ -10,10 +10,6 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@php
|
||||
$isActive = auth()->user()->hasRole(\App\Enums\UserRole::SUPPORTER);
|
||||
@endphp
|
||||
|
||||
<span class="inline-flex items-center gap-2 rounded-full px-3 py-1 text-sm font-medium border
|
||||
{{ $isActive ? 'bg-green-500/10 text-green-300 border-green-500/20' : 'bg-red-500/10 text-red-300 border-red-500/20' }}">
|
||||
<span class="h-2 w-2 rounded-full {{ $isActive ? 'bg-green-400' : 'bg-red-400' }}"></span>
|
||||
|
||||
Reference in New Issue
Block a user