Skip to content

Commit

Permalink
fix: button label nullable alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher committed Oct 19, 2023
1 parent fdac91f commit a85c706
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<a class="flex gap-2 items-center justify-center transition duration-200 border border-gray-400 w-full py-2.5 rounded-lg text-sm shadow-sm hover:shadow-md"
href='{{ route('oauth.redirect', $provider['id']) }}'>
<x-socialstream-icons.provider-icon :provider="$provider['id']" class="h-6 w-6"/>
<span class="block font-medium text-sm text-gray-700 dark:text-gray-300">{{ $provider['buttonLabel'] ?? $provider['name'] }}</span>
<span class="block font-medium text-sm text-gray-700 dark:text-gray-300">{{ $provider['buttonLabel'] }}</span>
</a>
@endforeach
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<a class="flex gap-2 items-center justify-center transition duration-200 border border-gray-400 w-full py-2.5 rounded-lg text-sm shadow-sm hover:shadow-md"
href='{{ route('oauth.redirect', $provider['id']) }}'>
<x-socialstream-icons.provider-icon :provider="$provider['id']" class="h-6 w-6"/>
<span class="block font-medium text-sm text-gray-700 dark:text-gray-300">{{ $provider['buttonLabel'] ?? $provider['name'] }}</span>
<span class="block font-medium text-sm text-gray-700 dark:text-gray-300">{{ $provider['buttonLabel'] }}</span>
</a>
@endforeach
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<a class="flex gap-2 items-center justify-center transition duration-200 border border-gray-400 w-full py-2.5 rounded-lg text-sm shadow-sm hover:shadow-md"
href='{{ route('oauth.redirect', $provider['id']) }}'>
<x-socialstream-icons.provider-icon :provider="$provider['id']" class="h-6 w-6"/>
<span class="block font-medium text-sm text-gray-700 dark:text-gray-300">{{ $provider['buttonLabel'] ?? $provider['name'] }}</span>
<span class="block font-medium text-sm text-gray-700 dark:text-gray-300">{{ $provider['buttonLabel'] }}</span>
</a>
@endforeach
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<a class="flex gap-2 items-center justify-center transition duration-200 border border-gray-400 w-full py-2.5 rounded-lg text-sm shadow-sm hover:shadow-md"
href='{{ route('oauth.redirect', $provider['id']) }}'>
<x-socialstream-icons.provider-icon :provider="$provider['id']" class="h-6 w-6"/>
<span class="block font-medium text-sm text-gray-700 dark:text-gray-300">{{ $provider['buttonLabel'] ?? $provider['name'] }}</span>
<span class="block font-medium text-sm text-gray-700 dark:text-gray-300">{{ $provider['buttonLabel'] }}</span>
</a>
@endforeach
</div>
Expand Down

0 comments on commit a85c706

Please sign in to comment.